Commit eeb23ff9 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fixes to allow .profile to be imported with `set -u` enabled

parent 5bae1c2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
# Automatically run terminal multiplexer on SSH connect
case $TERM in
	screen*|tmux*) ;;
	*) [ -n "$SSH_TTY" ] && [ -z "$TMUX" ] && has tmux &&
	*) [ -n "${SSH_TTY-}" ] && [ -z "${TMUX-}" ] && has tmux &&
		exec ~/.shell/bin/tmux-display-helper start-client ;;
esac

+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ get_branch()
manage_path()
{
	local var="$1" val="$2"; shift 2
	eval local cur=\$$var
	eval local cur=\${$var-}
	local cur=`echo $cur | sed -E 's!(^|:)'"$val"'(:|$)!\1\2!;s!^:|:$!!;s!::!:!'`
	local pre="$cur" post=
	while [ $# -gt 0 ]; do
+1 −1
Original line number Diff line number Diff line
. ~/.shell/lib/ssh.sh
make_config

test -n "$SSH_CONFIG" || return 0
test -n "${SSH_CONFIG-}" || return 0

alias ssh="ssh -F '${SSH_CONFIG}'"
alias scp="scp -F '${SSH_CONFIG}'"