zsh: Add tmux stuff
This commit is contained in:
parent
357f2f48af
commit
79bb2f7c9c
2 changed files with 13 additions and 0 deletions
8
modules/home/caem/core/zsh/conf.d/fzf-tab.zsh
Normal file
8
modules/home/caem/core/zsh/conf.d/fzf-tab.zsh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
zstyle ':completion:*:git-checkout:*' sort false
|
||||
zstyle ':completion:*:descriptions' format '[%d]'
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' menu no
|
||||
zstyle ':fzf-tab:*' fzf-flags --color 16 --bind=tab:accept
|
||||
[ -n "$TMUX" ] && zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
|
5
modules/home/caem/core/zsh/conf.d/tmux.zsh
Normal file
5
modules/home/caem/core/zsh/conf.d/tmux.zsh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
if [ -z "$TMUX" ] && [ -n "$PS1" ]; then
|
||||
tmux attach
|
||||
fi
|
Loading…
Add table
Reference in a new issue