]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .profile
.profile: ksh login script
[dotfiles.git] / .profile
1 # This is the default standard profile provided to a user.
2 # They are expected to edit it to meet their own needs.
3 unalias cd
4 stty erase ^? intr ^C kill ^U echoe
5 PATH=/epic/bin:/bin:/home/bin:/usr/bin:/bin:/opt/std/bin:/usr/local/bin:/usr/sbin
6 export PATH
7
8 set -a
9 PS1='$LOGNAME'@$(uname -n):'$PWD> '
10 set +a
11 PAGER=more
12
13 # Try to use tcsh or bash if available
14 if [[ -a /usr/local/bin/bash ]]
15 then
16 SHELL="/usr/local/bin/bash"
17 export SHELL; exec $SHELL
18 fi
19 if [[ -a /bin/bash ]]
20 then
21 SHELL="/bin/bash"
22 export SHELL; exec $SHELL
23 fi
24
25 # if current $TERM isn't valid, fall-back to TERM=xterm-color or TERM=xterm
26 case $(tput colors 2>&1) in
27 tput* )
28 export TERM=xterm-color
29 case $(tput colors 2>&1) in
30 tput* )
31 export TERM=xterm
32 ;;
33 esac
34 ;;
35 esac