From d9ca8858cbfdc4f1bca1bd7795404040917194c2 Mon Sep 17 00:00:00 2001 From: PieckA Date: Sat, 25 May 2024 12:53:49 +0200 Subject: [PATCH] some changes --- .gitignore | 3 +++ functions/tmux.fish | 20 +++++++------------- 2 files changed, 10 insertions(+), 13 deletions(-) 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