fish: functions/ta: Rename to ta & allow selection via fzf
This commit is contained in:
parent
6fde5418c2
commit
f99925d532
2 changed files with 4 additions and 3 deletions
4
fish/.config/fish/functions/ta.fish
Normal file
4
fish/.config/fish/functions/ta.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
function ta --description 'Attaches to a selected session'
|
||||
set session (tmux list-sessions | fzf | awk -F':' '{print $1}')
|
||||
tmux attach -t $session;
|
||||
end
|
|
@ -1,3 +0,0 @@
|
|||
function tat --wraps='tmux attach -t ' --description 'alias tat=tmux attach -t '
|
||||
tmux attach -t $argv;
|
||||
end
|
Loading…
Reference in a new issue