# Simple .bashrc for use on Solaris 10, Version 2012-06-22-01. # # Copyright (C) 2011-2012 Erik Auerswald # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. # set a more useful prompt PS1='\u@\h:\w$ ' # some common aliases alias l='ls -F' alias ll='ls -lF' alias la='ls -alF' # disable colored output of ipcalc alias ipcalc='ipcalc -n' # set a basic $PATH if unset test -z "$PATH" && export PATH="/usr/bin:/bin" # add /sbin and /usr/sbin to path if missing echo "$PATH" | grep /sbin > /dev/null || PATH="$PATH:/sbin" echo "$PATH" | grep /usr/sbin > /dev/null || PATH="$PATH:/usr/sbin" # for BSD / SunOS 4 compatibility, uncomment the following line # if unsure, leave it commented out # (if you do need this, you might not want standards compliance) #test -d /usr/ucb && PATH="/usr/ucb:$PATH" # add Sunfreeware if available test -d /opt/sfw/bin && PATH="/opt/sfw/bin:$PATH" # activate standards compliance (see standards(5)) test -d /usr/ccs/bin && PATH="/usr/ccs/bin:$PATH" test -d /usr/xpg4/bin && PATH="/usr/xpg4/bin:$PATH" test -d /usr/xpg6/bin && PATH="/usr/xpg6/bin:$PATH" # add $HOME/bin to PATH if it exists # add it at the end to not replace system binaries test -d "$HOME/bin" && PATH="$PATH:$HOME/bin" # use less instead of more PAGER=less ; export PAGER