diff --git a/functions/c_fisher.fish b/functions/c_fisher.fish index c2c28cf..42a5f30 100644 --- a/functions/c_fisher.fish +++ b/functions/c_fisher.fish @@ -6,13 +6,13 @@ # ╰───────────────────────────────────╯ function check_fisher -if [[ ! -e $HOME/.config/fish/functions/fisher.fish ]] +if [ ! -f $HOME/.config/fish/functions/fisher.fish ] curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher else # ─< define plugins to use with fisher >──────────────────────────────────────────────────── set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish" for plug in $plugin - fisher update $plu || fisher install $plug + fisher update $plug || fisher install $plug end end end @@ -20,3 +20,4 @@ end function plugins_fisher end + diff --git a/functions/tmux.fish b/functions/tmux.fish index ae3155c..83cd18c 100644 --- a/functions/tmux.fish +++ b/functions/tmux.fish @@ -1,6 +1,6 @@ -if command -v tmux 2>&1 +if command -v tmux /dev/null 2>&1 function ta -command tmux list-sessions 2>&1 +command tmux list-sessions /dev/null 2>&1 switch $status case '0' tmux a