Simplify tmux-session-hydrate logic; update tmux key binds
This commit is contained in:
18
src_files/.config/tmux/.tmux-session-hydrate-default
Normal file
18
src_files/.config/tmux/.tmux-session-hydrate-default
Normal file
@@ -0,0 +1,18 @@
|
||||
tmux_omitted_dirs=(
|
||||
$HOME
|
||||
$DIR_HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_GIT_PROJECTS
|
||||
)
|
||||
|
||||
[[ ! ${tmux_omitted_dirs[(re)$(pwd)]} ]] && {
|
||||
tmux new-window -d -n $EDITOR
|
||||
tmux send-keys -t :$EDITOR "$EDITOR ." c-M
|
||||
tmux new-window -d -n debug
|
||||
tmux new-window -d -n run
|
||||
tmux rename-window cmd
|
||||
tmux send-keys -t :cmd "clear; [[ -d .git ]] && git status" c-M
|
||||
}
|
||||
|
||||
clear
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
tmux_omitted_dirs=(
|
||||
$HOME
|
||||
$DIR_HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_GIT_PROJECTS
|
||||
)
|
||||
[[ ! ${tmux_omitted_dirs[(re)$(pwd)]} ]] &&
|
||||
tmux new-window -d -n cmd &&
|
||||
tmux rename-window $EDITOR &&
|
||||
$EDITOR .
|
||||
|
||||
clear
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
## example template
|
||||
|
||||
tmux new-window -d -n cmd
|
||||
tmux send-keys -t :cmd "echo 'in cmd'" c-M
|
||||
|
||||
tmux new-window -d -n another
|
||||
tmux send-keys -t :another "echo 'in another'" c-M
|
||||
|
||||
tmux rename-window $EDITOR
|
||||
$EDITOR .
|
||||
clear
|
||||
@@ -1,7 +0,0 @@
|
||||
tmux new-window -d -n ncspot
|
||||
|
||||
tmux new-window -d -n fitness
|
||||
tmux send-keys -t :fitness "cd $DIR_HOME_BOX/life/fitness/audio" c-M
|
||||
|
||||
tmux rename-window ncmpcpp
|
||||
ncmpcpp
|
||||
@@ -1,8 +0,0 @@
|
||||
tmux rename-window drawing
|
||||
|
||||
tmux new-window -n thinking
|
||||
tmux send-keys -t :thinking "$EDITOR $(date "+%Y%m%d")-scratch" c-M
|
||||
|
||||
tmux send-keys -t :drawing "cd $DIR_SCRATCH_DRAWINGS" c-M
|
||||
tmux send-keys -t :drawing "gimp" c-M
|
||||
|
||||
Reference in New Issue
Block a user