diff --git a/.config/fish/abbreviations.fish b/.config/fish/abbreviations.fish index be30033f..358cf59a 100644 --- a/.config/fish/abbreviations.fish +++ b/.config/fish/abbreviations.fish @@ -1,4 +1,3 @@ abbr -a y yadm abbr -a g git abbr -a d docker -abbr -a t tmux diff --git a/.config/fish/functions/t.fish b/.config/fish/functions/t.fish new file mode 100644 index 00000000..238ff4f7 --- /dev/null +++ b/.config/fish/functions/t.fish @@ -0,0 +1,3 @@ +function t --wraps=tmux --description 'alias t=tmux' + tmux attach >/dev/null 2>&1 || tmux $argv +end