All Questions
74
questions
0
votes
0
answers
69
views
How to setup zsh with fzf history backsearch in tmux (I get zle errors)
I am using tmux with the zsh shell.
I try to setup fzf, and I do it like this (inside my zshrc):
eval "$(fzf --zsh)"
This works, as long as I am not in tmux. I can use Ctrl-R and get the ...
1
vote
3
answers
149
views
Redirecting stdout of a script as the stdin of another script/command running in a tmux session
I am adapting Marcus Müller’s answer
to a question I asked last week —
a script that redirects its stdout to a tmux session
in order to render ANSI escape sequences,
and then captures the pane render ...
0
votes
1
answer
323
views
Modify tmux run-shell PATH
I am creating a few scripts that I'm saving at $HOME/.local/bin; path which is added to the PATH in $HOME/.zshrc. If I execute them through the terminal, all is good. However, when I do tmux run-shell ...
0
votes
1
answer
541
views
zsh PROMPT coloring doesn't work inside of tmux
I have the following line in my .zshrc:
export PROMPT="%n@%K{9}%m%k:%~# "
It works if I connect directly
But doesn't work inside tmux
How to fix?
-2
votes
1
answer
126
views
TMUX weird splitting mechanism
I'm not sure why TMUX isn't working properly or why can't it just work out of the box. Modern terminal clients these days have cmd+d and cmd-D for splitting.
I have to press a series of keys, which is ...
0
votes
0
answers
687
views
Set 256 color prompt in zsh/kitty/tmux
This problem is only for the Kitty terminal (works in alacritty, Hyper; problem exists both on macos and arch linux)
currently set my terminal with
PS1='%B%F{magenta}%3~ ${vim_mode}%f%b '
this sets ...
0
votes
0
answers
456
views
zsh+tmux in Mac OS Ventura: line wrapping occurs at every typing
When updated to Mac OS Ventura, I found trouble using zsh and tmux. Line wrapping happens when I hit the keyboard. Please check the screenshot below. In this case, I just typed lspwa. Any idea for ...
1
vote
0
answers
1k
views
new tmux pane not sourcing zshrc file
Using iTerm2 with tmux and zsh. I have an issue that new tmux panes doesn't source ~/.zshrc file
I have customized my terminal (when running source ~/.zshrc manually it works) but when opening new ...
2
votes
1
answer
534
views
Tmux vi copy mode selection - character under cursor is not highlighted
If I switch to copy mode in tmux (vi mode), and begin selecting text using v, the character that is directly under the cursor is never highlighted properly even though it is selected (i.e. if I copy ...
0
votes
0
answers
120
views
Do not run code block when exit from tmux
I am using the following code on my rc file to run tmux every time i open my terminal.
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ ...
1
vote
1
answer
121
views
How to automate the process to open 3 shells and run 3 commands?
I set up something so that I'd open up 3 shells and run the programs one by one:
cd foo/bar
./foo.sh
cd foo/bar
node bar.js
cd foo/bar
ruby foobar.rb
However, since it is time consuming, so I wrote ...
0
votes
1
answer
720
views
zsh prefix completion is gone when running in tmux
The prefix completion in zsh using up and down arrow arrow keys is amazing. Let's assume I have the following command history:
ls ~
vim .zshrc
ls /tmp
cat /tmp/wiefoijewfoijwef
ls /etc
Then, when I ...
2
votes
2
answers
2k
views
How can I introduce a pause during a tmux send-keys operation?
I want to use tmux's send-keys to run a series of commands when I log into a remote server
In the linked answer, a single command is used. I've found that I can put a series of them but I've never ...
4
votes
3
answers
2k
views
I can't grep tmux ls output when no tmux server is running
I'm trying to find a way to check if tmux server is running or not in order to update my zsh prompt with that information.
when tmux server is alive
> tmux ls
0: 1 windows (created Sat Jul 10 13:47:...
1
vote
1
answer
3k
views
why is shell (new terminal, new tmux panes/windows) slow to load?
When I open a new terminal it takes a couple seconds for the shell to load, when I open a new pane or window in tmux it might even take a second longer. The delay is about 3 seconds.
I'm using zsh ...