Fix type, redirect stderr from tmux

This commit is contained in:
The Magician 2023-12-10 16:41:14 +00:00
parent 114f7e5774
commit 86df65fc29
1 changed files with 2 additions and 2 deletions

View File

@ -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