config/{profile,csh.login}: remove /bin and /sbin from PATH after filesystem /bin vs. /usr/bin and /sbin vs. /usr/sbin merge and other cleanups

This commit is contained in:
Silvan Calarco 2021-03-07 21:23:32 +01:00
parent 11f945a982
commit 99cb2d057b
2 changed files with 7 additions and 19 deletions

View File

@ -4,9 +4,9 @@
if ($?PATH) then
setenv PATH "${PATH}:/usr/X11R6/bin"
setenv PATH "${PATH}"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
setenv PATH "/usr/bin:/usr/local/bin"
endif
# (pixel) tcsh doesn't handle directory in the PATH being non-readable
@ -25,7 +25,7 @@ else
umask 002
endif
setenv HOSTNAME `/bin/hostname`
setenv HOSTNAME `/usr/bin/hostname`
set history=1000
if ( -f $HOME/.inputrc ) then

View File

@ -1,6 +1,6 @@
# profile Default shell profile configuration
#
# Copyright (c) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2003-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2003-2008 by Davide Madrisan <davide.madrisan@gmail.com>
#
# WARNING:
@ -21,22 +21,10 @@ fi
loginsh=1
# Make path more comfortable
PATH=/bin:/usr/bin:/usr/local/bin
PATH=/usr/bin:/usr/local/bin
if [ "$UID" = 0 ]; then
[ -d /opt/gnome/sbin ] && PATH=$PATH:/opt/gnome/sbin
[ -d /opt/kde/sbin ] && PATH=$PATH:/opt/kde/sbin
[ -d /opt/kde3/sbin ] && PATH=$PATH:/opt/kde3/sbin
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
PATH=/usr/sbin:/usr/local/sbin:$PATH
fi
for dir in /opt/bin \
/opt/gnome/bin \
/opt/kde/bin \
/opt/kde3/bin \
/usr/lib/qt3/bin
do
[ -d "$dir" ] && PATH=$PATH:$dir
done
unset dir
export PATH
umask 022
@ -45,7 +33,7 @@ USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HOSTNAME=`/usr/bin/hostname`
HISTSIZE=1000
export USER LOGNAME MAIL HISTCONTROL HOSTNAME HISTSIZE