From eb4ec29abc5e31adc76f7b9da59e3f081ff1508b Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 10 Apr 2024 14:54:52 +0100 Subject: [PATCH] Run X before attempting to launch tmux --- bash/.bashrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index 7798a50..69cc228 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -11,7 +11,7 @@ export TERM="xterm-256color" export EDITOR="vi" export VISUAL="vi" -export PATH="$PATH:$HOME/.local/bin/:$HOME/go/bin/" +export PATH="$PATH:$HOME/.local/bin/:$HOME/go/bin/:$HOME/bin/maltego_4.6.0/bin/" export CDPATH=".:$HOME" @@ -72,10 +72,10 @@ md() { mkdir -p "$1" && cd "$1" || return } +# Automatically run X if this is a login tty +[[ "$(tty)" == "/dev/tty1" ]] && ! pgrep -x Xorg >/dev/null && startx + # 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 2>/dev/null | grep --quiet "$HOSTNAME"; then tmux new -s "$HOSTNAME" fi - -# Automatically run X if this is a login tty -[[ "$(tty)" == "/dev/tty1" ]] && ! pgrep -x Xorg >/dev/null && startx