1 if [ -r /usr/local/etc/env ]; then
2 alias hostname=/bin/hostname
6 # if not interactive, don't do anything
7 [ -z "$PS1" ] && return
9 #let's get arrow keys to work.
10 alias __A=`echo "\020"` # up arrow = ^p
11 alias __B=`echo "\016"` # down arrow = ^n
12 alias __C=`echo "\006"` # right arrow = ^f
13 alias __D=`echo "\002"` # left arrow = ^b
16 # Only show username and hostname if remote or unusual
17 if [ -n "$SSH_CONNECTION" ] || [ "$(id -un)" != "james" ]; then
22 #This seems to make the command line strange.... seems to count control chars.
23 #PS1='${prompt_remote:+
\e[01;32m$USER@$HOST
\e[0m:}
\e[01;34m$PWD
\e[0m \$ '
24 PS1='${prompt_remote:+$USER@$HOST:}$PWD \$ '
28 #[ X"/usr/bin/ksh" == X"${SHELL}" ] && [ -x /bin/bash ] && SHELL=/bin/bash /bin/bash -l
29 #[ X"/usr/bin/ksh" == X"${SHELL}" ] && [ -x /bin/bash ] && sleep 5 && echo "start" && jobs && exec /bin/bash -i