some more fixes
This commit is contained in:
parent
1f2f23a860
commit
805060dd52
2 changed files with 8 additions and 8 deletions
|
|
@ -63,15 +63,14 @@
|
|||
set -l selected (dev_projects | command fzf \
|
||||
--prompt "Create/switch to session: " \
|
||||
--header " Ctrl-d: Kill Session " \
|
||||
--bind "ctrl-d:execute(tmux kill-session -t {2..})++reload(dev_projects)")
|
||||
|
||||
--bind "ctrl-d:execute(tmux kill-session -t {1})++reload(dev_projects)")
|
||||
|
||||
if test -z "$selected"
|
||||
return 1
|
||||
end
|
||||
|
||||
set -l session_name (basename $selected)
|
||||
set -l tmux_runnning (pgrep tmux)
|
||||
set -l tmux_running (pgrep tmux)
|
||||
|
||||
if test -z $TMUX && test -z $tmux_running
|
||||
tmux new-session -s $session_name -c $selected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue