modify tmux start
This commit is contained in:
parent
3cc5afc816
commit
48e108f4c0
@ -1 +1 @@
|
|||||||
Subproject commit c5e98e3ca84843dbae47cd8f3a76bc38c6404241
|
Subproject commit 4dedd3b08f8c6e3f84afbce0c23b66320cd2a8f2
|
@ -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
|
||||||
|
}
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user