Fix type, redirect stderr from tmux
This commit is contained in:
parent
114f7e5774
commit
86df65fc29
|
@ -73,9 +73,9 @@ md() {
|
|||
}
|
||||
|
||||
# Automatically run tmux if we aren't already in a session and there's no matching session already running
|
||||
if [[ -z "$TMUX" ]] && ! tmux list-sessions | grep --quiet "$HOSTNAME"; then
|
||||
if [[ -z "$TMUX" ]] && ! tmux list-sessions 2>/dev/null | grep --quiet "$HOSTNAME"; then
|
||||
tmux new -s "$HOSTNAME"
|
||||
fi
|
||||
|
||||
# AUtomatically run X if this is a login tty
|
||||
# Automatically run X if this is a login tty
|
||||
[[ "$(tty)" == "/dev/tty1" ]] && ! pgrep -x Xorg >/dev/null && startx
|
||||
|
|
Loading…
Reference in New Issue