# .kshrc -- Commands executed by the Korn shell at startup # # Only interactive shells run .kshrc, stty commands good here. # This makes intr be \^{}c so System V acts like BSD stty intr '^{}c' # Or this would make BSD act like SysV stty intr '\^{}?' # Set environmental variables# # Set the command line editor to be vi like. export VISUAL="vi" # Now we set our aliases # All the ls stuff alias l='/bin/ls -CF' alias ll='/bin/ls -l' alias ls='/bin/ls -CF' alias lt='/bin/ls -CFt' alias dir='ls -lF' # change ps behavior alias ps='/bin/ps -af' alias pse='/bin/ps -eaf' # -i makes commands ask before over writing existing files alias cp='cp -i' alias mv='mv -i' alias rm='rm -i' alias cd..='cd ..' alias who='who -u' alias his=history alias open='chmod go r' alias shut='chmod go-r' # Here make aliases so can use BSD style printing commands alias lpq='lpstat -o' alias lpr='cancel'