diff options
author | Aaron LI <aly@aaronly.me> | 2019-10-03 11:53:02 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-10-03 11:54:04 +0800 |
commit | d2a4672e74290fc8a0662fb459e8e268b72a0fdf (patch) | |
tree | eb8d5cd0ca786688184cf3e5be380702c4a2cb34 /_zsh/80-tmux.zsh | |
parent | b7c96f96473856ec0aaa2ffdd4454a2fca6c7735 (diff) | |
download | dotfiles-d2a4672e74290fc8a0662fb459e8e268b72a0fdf.tar.bz2 |
zsh: Merge zsh/* configs into zshrc
Meanwhile, drop some unused configurations ...
Diffstat (limited to '_zsh/80-tmux.zsh')
-rw-r--r-- | _zsh/80-tmux.zsh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/_zsh/80-tmux.zsh b/_zsh/80-tmux.zsh deleted file mode 100644 index 9a4ad9c..0000000 --- a/_zsh/80-tmux.zsh +++ /dev/null @@ -1,37 +0,0 @@ -# -# zsh/tmux.zsh -# - - -# Integrate `tmux` attach with `percol` -# Credit: https://github.com/mooz/percol -if exists percol; then - function tmattach() { - if [[ $1 == "" ]]; then - PERCOL=percol - else - PERCOL="percol --query $1" - fi - - sessions=$(tmux list-sessions) - [ $? -ne 0 ] && return - - session=$(echo ${sessions} | eval ${PERCOL} | cut -d: -f1) - if [[ -n "${session}" ]]; then - tmux attach -t ${session} - fi - } -fi - - -# Handy aliases -if exists tmattach; then - alias tma=tmattach -else - alias tma='tmux attach -t' -fi -alias tml='tmux list-sessions' -alias tms='tmux new-session -s' - - -# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |