# $Paefchen: home/as/.csh/hscripts.csh,v 1.1 2008/01/07 06:03:02 as Exp $
# CSHRC_RELOAD: YES
# CSHRC_ROMPTONLY: YES
# CSHRC_DESCR: Hilfs-Skripts neu laden
if (! $?CSHRC_MD_HSCRIPTS_PATH) then
if (-d ~/scripts) then
set _paths = ~/scripts
else
set _paths = ' '
endif
if (`id -u` == 0 && -d /root/scripts) then
set _paths = "${_paths} /root/scripts"
endif
else
set _paths = $CSHRC_MD_HSCRIPTS_PATH
endif
if ("$_paths" != " ") then
whan "suche skripts in ${_paths}: "
# gefundene Skripts durchgehen und aliase setzen
foreach _script (`find $_paths -type f -exec test -x {} \; -print | tr "\n" ' '`)
whan "=> $_script:t:r "
alias $_script:t:r $_script
end
endif
unset _script _path