mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
updated
This commit is contained in:
parent
14efa80cab
commit
86209ebcf1
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ in
|
|||
|
||||
# Auto-start tmux only on local TTY (not SSH, not in tmux already)
|
||||
programs.bash.profileExtra = mkIf (!wm.enable) ''
|
||||
if [[ $- == *i* ]] && [ -z "$DISPLAY" ] && [ -z "$TMUX" ] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ]; then
|
||||
if [ -t 0 ] && [[ $- == *i* ]] && [ -z "$DISPLAY" ] && [ -z "$TMUX" ] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ]; then
|
||||
exec tmux
|
||||
fi
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue