update
This commit is contained in:
parent
0b1975d9a9
commit
f4acd05a20
6 changed files with 97 additions and 35 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
dir=${1:-}
|
||||
|
||||
[ -z "${dir}" ] && dir=$(find $HOME/Documents/gitlab -mindepth 2 -maxdepth 2 -type d | awk -F/ '{print $(NF-1)"/"$NF " " $0}' | fzf --with-nth=1 | awk '{print $2}')
|
||||
[ -z "${dir}" ] && dir=$(find $HOME/Documents/gitlab -mindepth 2 -maxdepth 2 -type d | awk -F/ '{print $(NF-1)"/"$NF " " $0}' | fzf --reverse --header "New Session" --with-nth=1 | awk '{print $2}')
|
||||
[ -z "$dir" ] && return 1
|
||||
|
||||
name=$(basename "$dir")
|
||||
|
|
@ -23,7 +23,7 @@ tmux split-window -v -t "$name:1.1" -c "$dir"
|
|||
tmux resize-pane -t "$name:1.1" -y $(($(tmux display -p '#{window_height}') - $BOTTOM_PANE_WIDTH))
|
||||
tmux new-window "$name" -n lazygit -c "$dir"
|
||||
sleep 1
|
||||
tmux send-keys -t "$name:1.1" 'nvim' C-m
|
||||
tmux send-keys -t "$name:1.1" 'set-env; nvim' C-m
|
||||
sleep 0.1
|
||||
tmux send-keys -t "$name:1.3" 'set-env; nvim +CodeCompanionChat -c only' C-m
|
||||
sleep 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue