This commit is contained in:
Steph 2022-08-31 16:21:35 +02:00
parent 88a32f9aeb
commit 0e8bcc17ea

View File

@ -193,10 +193,14 @@ let
runtimeInputs = [ myKakoune ];
text = ''
BUFFER_NAME=''$(echo -n "''$PWD" | xxd -ps -c 200 | tr -d '\n')
tmux -L "$BUFFER_NAME" new-session -d -s "$BUFFER_NAME" 'kak -e kaktree-toggle'
tmux -L "$BUFFER_NAME" set -g status off
tmux -L "$BUFFER_NAME" set -g pane-border-style fg=#0c0c0c
tmux -L "$BUFFER_NAME" set -g pane-active-border-style "bg=default fg=#0c0c0c"
tmux -L "$BUFFER_NAME" has-session -t "$BUFFER_NAME" || {
tmux -L "$BUFFER_NAME" new-session -d -s "$BUFFER_NAME" 'kak -e kaktree-toggle'
tmux -L "$BUFFER_NAME" set -g status off
tmux -L "$BUFFER_NAME" set -g pane-border-style fg=#0c0c0c
tmux -L "$BUFFER_NAME" set -g pane-active-border-style "bg=default fg=#0c0c0c"
}
tmux -L "$BUFFER_NAME" attach -t "$BUFFER_NAME"
'';
});