modify tmux start

This commit is contained in:
vincent 2022-04-21 19:59:51 +02:00
parent 3cc5afc816
commit 48e108f4c0
3 changed files with 10 additions and 2 deletions

@ -1 +1 @@
Subproject commit c5e98e3ca84843dbae47cd8f3a76bc38c6404241 Subproject commit 4dedd3b08f8c6e3f84afbce0c23b66320cd2a8f2

View File

@ -88,3 +88,11 @@ function removeknowhost (){
sed -i "/^$1/d" ~/.ssh/known_hosts sed -i "/^$1/d" ~/.ssh/known_hosts
fi fi
} }
function tmux-bootstrap () {
tmux new-window
tmux new-window -n note nvim ~/home/notes2
tmux new-window 'note'
tmux new-window 'ncmpcpp'
tmux select-window -t :1
}

View File

@ -21,7 +21,7 @@ zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
##if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then ##if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]]; then if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]]; then
tmux attach-session -t $(hostname) || tmux new-session -s $(hostname) tmux new-session -t $(hostname) || tmux new-session -s $(hostname)
fi fi