Switch from tmux to zellij
Also remapped some nvim and zsh keybinds to not conflict with zellij
This commit is contained in:
parent
df45dea143
commit
7136b447f9
8 changed files with 48 additions and 17 deletions
|
@ -1,8 +0,0 @@
|
|||
# Launch tmux if logging in over ssh
|
||||
if [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
if tmux has-session -t ssh_tmux 2>/dev/null; then
|
||||
exec tmux -2 attach-session -t ssh_tmux
|
||||
else
|
||||
exec tmux -2 new-session -s ssh_tmux
|
||||
fi
|
||||
fi
|
9
home/.config/zsh/01-zellij.zsh
Normal file
9
home/.config/zsh/01-zellij.zsh
Normal file
|
@ -0,0 +1,9 @@
|
|||
if [[ -z "$ZELLIJ" ]]; then
|
||||
# Launch or attach to existing session if logging in over ssh
|
||||
if [[ -n "$SSH_CONNECTION" ]]; then
|
||||
exec zellij attach -s SSH
|
||||
# Launch a new local session otherwise
|
||||
else
|
||||
exec zellij
|
||||
fi
|
||||
fi
|
|
@ -44,3 +44,7 @@ bindkey -M vicmd e edit-command-line
|
|||
|
||||
# bind delete in normal mode
|
||||
bindkey -M vicmd '^[[3~' delete-char
|
||||
|
||||
# Rebind fzf to ctrl+f
|
||||
bindkey '^F' fzf-file-widget
|
||||
bindkey '^T' transpose-chars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue