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
|
||||
|
|
|
|||
|
|
@ -35,20 +35,21 @@
|
|||
}
|
||||
];
|
||||
extraConfig = ''
|
||||
set -g status-position bottom
|
||||
set -g status-position top
|
||||
set -g status-style bg=#1d202f,fg=white
|
||||
set -g status-left ' [#I] #W '
|
||||
set -g status-right '#[bg=default,fg=magenta]>> #S << #[bg=default,fg=white]#H '
|
||||
set -g status-left ""
|
||||
set -g status-right "#[bg=default,fg=magenta]>> #S << #[bg=default,fg=white]#H "
|
||||
set -g window-status-current-style bg=default,fg=magenta,bold
|
||||
set-window-option -g window-status-format "[#I] #W#F"
|
||||
set -g pane-border-style fg=gray
|
||||
set -g pane-active-border-style fg=magenta
|
||||
|
||||
unbind %
|
||||
bind "|" split-window -h
|
||||
unbind '"'
|
||||
bind - split-window -l 30 -v
|
||||
bind - split-window -l 15 -v
|
||||
|
||||
bind r source-file ~/.config/tmux/tmux.conf
|
||||
bind r source-file "~/.config/tmux/tmux.conf"
|
||||
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue