Ticket #13384: profile.diff
File profile.diff, 1.1 KB (added by , 7 years ago) |
---|
-
/etc/profile
old new 3 3 # Place user customizations in /.profile 4 4 # 5 5 6 ps |& grep -e $PPID |& grep -e $SHELL |&grep -q -e $PPID > /dev/null 2>&16 ps 2>&1 | grep -e $PPID 2>&1 | grep -e $SHELL 2>&1 | grep -q -e $PPID > /dev/null 2>&1 7 7 if [ $? -eq 1 ] ; then 8 8 echo -e "\nWelcome to the Haiku shell.\n" 9 9 export PS1="\w> " … … 35 35 alias la="ls -A" 36 36 alias m="more" 37 37 38 shopt -s checkwinsize38 test -n "$BASH_VERSION" && shopt -s checkwinsize 39 39 40 40 # 41 41 # and now we include a few useful things... … … 51 51 # Chet Ramey 52 52 # chet@ins.CWRU.Edu 53 53 # 54 whence()54 test -n "$KSH_VERSION" || whence() 55 55 { 56 56 local vflag= path= 57 57 … … 106 106 return $returnValue 107 107 } 108 108 109 alias which='whence' 109 if test -n "$KSH_VERSION"; then 110 ps1_pwd() { 111 local e=$? d=${PWD:-?}/ p=~ 112 [[ $p = ?(*/) ]] || d=${d/#$p\//\~/} 113 print -nr -- "${d%/}" 114 return $e 115 } 116 PS1=${PS1/'\w'/'$(ps1_pwd)'} 117 alias which='whence -p' 118 else 119 test -n "$BASH_VERSION" || PS1=$(printf '%s' "$PS1" | \ 120 sed 's/\\w/$PWD/') 121 alias which='whence' 122 fi 110 123 111 124 function dir { 112 125 ls -lF "$@";