Commit 024d1854 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Move auto-tmux to .profile

… suitable modified for POSIX Bourne shells.
parent ca4fa5b7
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -17,9 +17,5 @@ if [ -n "$PS1" ]; then
	export PS1
fi

# Automatically run terminal multiplexer on SSH connect
[[ -n "$SSH_TTY" ]] && ! [[ "$TERM" =~ ^(screen|tmux) ]] && has tmux &&
	exec ~/.shell/bin/tmux-display-helper start-client

# Get Bash aliases and functions
source_first ~/.bashrc /etc/bash.bashrc /etc/bashrc
+7 −0
Original line number Diff line number Diff line
. ~/.shell/funcs
. ~/.shell/colours

# Automatically run terminal multiplexer on SSH connect
case $TERM in
	screen*|tmux*) ;;
	*) [ -n "$SSH_TTY" ] && has tmux &&
		exec ~/.shell/bin/tmux-display-helper start-client ;;
esac

# Environment variables
export HISTIGNORE="&:ls:[bf]g:d[fu]:exit"
export WORKON_HOME=~/.virtualenvs
+0 −4
Original line number Diff line number Diff line
@@ -2,7 +2,3 @@ source ~/.shell/funcs

# Source all-shell startup profile environments
source_each ~/.profile ~/.profile_local

# Automatically run terminal multiplexer on SSH connect
[[ -n "$SSH_TTY" ]] && ! [[ "$TERM" =~ ^(screen|tmux) ]] && has tmux &&
	exec ~/.shell/bin/tmux-display-helper start-client