#!/bin/ksh # Marco Schirrmeister # http://people.ogilvy.de/~mschirrmeister/DotKshrc_sles10.txt # .kshrc export PATH=$PATH:/opt/ibm/ldap/V6.1/bin:/opt/ibm/ldap/V6.1/sbin #set shell option #set -o emacs set -o vi # aliases alias cl="tput clear" \ ll="ls -lh" \ la="ls -a" \ v=vi \ vw=view \ e="emacs -nw" \ j=java \ nslookup="nslookup -sil" \ # setup direction keys (for use with emacs edit mode) alias __A='' __B='' __C='' __D='' # setup prompt case $TERM in xterm*) PS1='[$(tput setab 1 ; tput setaf 0)${LOGNAME}$(tput sgr0)@${HOSTNAME} ${PWD##*/}]# ' ;; linux*) PS1='[$(tput setab 1 ; tput setaf 0)${LOGNAME}$(tput sgr0)@${HOSTNAME} ${PWD##*/}]# ' ;; *) PS1='${LOGNAME}@${HOSTNAME} !${who}' ;; esac