Commit 89feb562 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add 'scp' alias for SSH localised configs

parent 8e05bf91
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -20,7 +20,8 @@ alias fgrep='~/.shell/bin/grep-auto-exclude fgrep -n'
alias egrep='~/.shell/bin/grep-auto-exclude egrep -n'

# special SSH
alias ssh='~/.ssh/ssh'
alias ssh="ssh -F '${SSH_CONFIG:=`~/.ssh/ssh --make-config`}'"
alias scp="scp -F '${SSH_CONFIG:=`~/.ssh/ssh --make-config`}'"

# special vim
alias vim="FROM_ALIAS=yes $EDITOR"
+4 −0
Original line number Diff line number Diff line
@@ -113,6 +113,10 @@ fi >&2

case " $*" in
	*' -F'*) exec ${SSH_BIN} "$@" ;;
	' --make-config'*) 
		make_config
		echo "$CONFIG"
		;;
	*)
		make_config
		PATH="`dirname $0`:$PATH"; export PATH