[zsh] Add quick helper to access the latest tmux sessions

This commit is contained in:
Sebastian Schulze 2020-07-10 10:01:42 +02:00
parent beb7be42f0
commit 139ef7ac85
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 4 additions and 1 deletions

View File

@ -132,10 +132,13 @@ function fzf-vm () {
zle -N fzf-vm zle -N fzf-vm
bindkey '\ev' fzf-vm bindkey '\ev' fzf-vm
function ta () { function fzf-ta () {
tmux attach $(tmux ls -F "#{session_name}" | fzf) tmux attach $(tmux ls -F "#{session_name}" | fzf)
} }
zle -N fzf-ta
bindkey '\et' fzf-ta
# Via @leahneukirchen # Via @leahneukirchen
autoload -Uz copy-earlier-word autoload -Uz copy-earlier-word
zle -N copy-earlier-word zle -N copy-earlier-word