diff --git a/.gitignore b/.gitignore index 04849ba..2a853c3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ dotfiles/.config/rofi/pywal-color/pywal-theme.rasi completions/fisher.fish functions/fisher.fish fisher.fish +conf.d/ +fish_plugins +completions/ diff --git a/functions/tmux.fish b/functions/tmux.fish index 83cd18c..04dca6c 100644 --- a/functions/tmux.fish +++ b/functions/tmux.fish @@ -1,13 +1,7 @@ -if command -v tmux /dev/null 2>&1 - function ta -command tmux list-sessions /dev/null 2>&1 - switch $status - case '0' - tmux a - case '*' - echo "-- there are no tmux sessions | creating one now.. " - sleep 0.7 - tmux - end - end -end +function ta +if command -v tmux list-sessions /dev/null 2>&1 + tmux a + else + tmux + end +end