remove tmux as main session, tty2 always in tmux
This commit is contained in:
parent
678533c613
commit
40c63547de
@ -2,6 +2,9 @@ if [[ "$TTY" =~ /dev/tty* ]]; then
|
|||||||
setterm -blength=0
|
setterm -blength=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if systemctl -q is-active graphical.target && [[ $(tty) = "/dev/tty1" ]] && [[ -z $DISPLAY ]] && [[ $XDG_VTNR -eq 1 ]]; then
|
if systemctl -q is-active graphical.target && [[ $(tty) = "/dev/tty1" ]] && [[ -z $DISPLAY ]] && [[ $XDG_VTNR -eq 1 ]]; then
|
||||||
exec startx >> ~/.xlogs 2>&1
|
exec startx >> ~/.xlogs 2>&1
|
||||||
|
elif command -v tmux &>/dev/null && [[ $(tty) = "/dev/tty2" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||||
|
exec tmux
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
# .zshrc by TheK4n
|
# .zshrc by TheK4n
|
||||||
# https://github.com/TheK4n/dotfiles
|
# https://github.com/TheK4n/dotfiles
|
||||||
|
|
||||||
if command -v tmux &>/dev/null && [ -z "$TMUX" ] && [[ ! "$TERM" =~ tmux ]]; then
|
|
||||||
exec tmux new
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f $HOME/.config/zsh/sourcer ]; then
|
if [ -f $HOME/.config/zsh/sourcer ]; then
|
||||||
source $HOME/.config/zsh/sourcer
|
source $HOME/.config/zsh/sourcer
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user