Created
July 23, 2015 01:59
-
-
Save glennklockwood/f5ec6831f4c7028cf004 to your computer and use it in GitHub Desktop.
Sensible .bashrc on Solaris 10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### bashrc/bash_profile for SunOS 5.10 | |
# Solaris 10 lacks support for xterm-color (although it is provided in OpenCSW) | |
if [ "$TERM" == "xterm-color" ]; then | |
export TERM=xterm | |
fi | |
alias ssh='ssh -X' | |
alias ls='ls -p' | |
alias md5='digest -a md5 -v' | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
# OpenCSW programs have knowledge of xterm-color, but Solaris does not | |
screen() { | |
oterm=$TERM | |
export TERM=xterm | |
/opt/csw/bin/screen $* | |
export TERM=$oterm | |
} | |
vi() { | |
oterm=$TERM | |
export TERM=xterm-color | |
/opt/csw/bin/vim $* | |
export TERM=$oterm | |
} | |
PS1="\u@\h:\w\$ " | |
PATH=$PATH:/usr/sbin | |
export PATH PS1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment