Use --skip-theme-config flag in box_setup, adjust nvim and tmux settings
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#!/bin/zsh
|
||||
|
||||
tmux_switch_to() {
|
||||
[[ -z $TMUX ]] && tmux attach-session -t $1 || tmux switch-client -t $1
|
||||
[ -z "$TMUX" ] && tmux attach-session -t "$1" || tmux switch-client -t "$1"
|
||||
}
|
||||
|
||||
tmux_hydrate() {
|
||||
local tmux_hydrate_path="$XDG_CONFIG_HOME/tmux/.tmux-session-hydrate-default"
|
||||
[[ -f $2/.tmux-session-hydrate ]] && tmux_hydrate_path="$2/.tmux-session-hydrate"
|
||||
[[ -f $tmux_hydrate_path ]] && tmux send-keys -t $1 ". $tmux_hydrate_path" c-M
|
||||
hydrate_path="$XDG_CONFIG_HOME/tmux/.tmux-session-hydrate-default"
|
||||
[ "$1" = "hub" ] && hydrate_path="$XDG_CONFIG_HOME/tmux/.tmux-session-hydrate-hub"
|
||||
[ -f "$2/.tmux-session-hydrate" ] && hydrate_path="$2/.tmux-session-hydrate"
|
||||
[ -f "$hydrate_path" ] && tmux send-keys -t $1 ". $hydrate_path" c-M
|
||||
}
|
||||
|
||||
tmux_existing_sessions=$(tmux list-sessions 2> /dev/null || echo '')
|
||||
@@ -24,6 +25,7 @@ tmux_target_path=''
|
||||
|
||||
if [[ $tmux_target_path = "." ]]; then tmux_target_name=$(basename $(pwd)) && tmux_target_path=$(pwd);
|
||||
elif [[ $tmux_target_path = "hub" ]]; then tmux_target_name="hub" && tmux_target_path="$HOME";
|
||||
elif [[ $tmux_target_path = "notes" ]]; then tmux_target_name="notes" && tmux_target_path="$DIR_NOTES";
|
||||
elif [[ -n $tmux_target_path ]]; then tmux_target_name=$(basename "$tmux_target_path" | tr . _);
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user