Made changes to the home session
This commit is contained in:
@@ -21,6 +21,10 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
|
||||
# Avoid leaking sensitive windows due to preview by adding the N flag
|
||||
bind-key s choose-tree -ZsN
|
||||
bind-key w choose-tree -ZwN
|
||||
|
||||
set -g mouse on
|
||||
bind-key r source-file ~/.tmux.conf
|
||||
|
||||
|
||||
@@ -6,6 +6,14 @@ dir=$2
|
||||
if [ "$dir" = "$HOME" ]; then
|
||||
tmux rename-window -t $sess:1 main
|
||||
tmux send-keys -t $sess:main.1 "fastfetch" C-m
|
||||
|
||||
tmux new-window -t $sess -n dotfiles -c $HOME/dotfiles
|
||||
tmux send-keys -t $sess:dotfiles.1 "vim" C-m
|
||||
|
||||
tmux new-window -t $sess -n diary -c $HOME/personal/dairy
|
||||
tmux send-keys -t $sess:diary.1 "vim" C-m
|
||||
|
||||
tmux select-window -t $sess:main
|
||||
elif [ "$sess" = "eko" ]; then
|
||||
tmux rename-window -t $sess:1 editor
|
||||
tmux send-keys -t $sess:editor.1 "vim" C-m
|
||||
|
||||
Reference in New Issue
Block a user