Annotation of home/as/.csh/hscripts.csh, revision 1.1

1.1     ! as          1: # $Paefchen$
        !             2: 
        !             3: # CSHRC_RELOAD: YES
        !             4: # CSHRC_ROMPTONLY: YES
        !             5: # CSHRC_DESCR: Hilfs-Skripts neu laden
        !             6: 
        !             7: 
        !             8: if (! $?CSHRC_MD_HSCRIPTS_PATH) then
        !             9:        if (-d ~/scripts) then
        !            10:                set _paths = ~/scripts
        !            11:        else
        !            12:                set _paths = ' '
        !            13:        endif
        !            14: 
        !            15:        if (`id -u` == 0 && -d /root/scripts) then
        !            16:                set _paths = "${_paths} /root/scripts"
        !            17:        endif
        !            18: else
        !            19:        set _paths = $CSHRC_MD_HSCRIPTS_PATH
        !            20: endif
        !            21: 
        !            22: if ("$_paths" != " ") then
        !            23:        whan "suche skripts in ${_paths}: "
        !            24: 
        !            25:        # gefundene Skripts durchgehen und aliase setzen
        !            26:        foreach _script (`find $_paths -type f -exec test -x {} \; -print | tr "\n" ' '`)
        !            27:                whan "=> $_script:t:r "
        !            28:                alias $_script:t:r $_script
        !            29:        end
        !            30: endif
        !            31: 
        !            32: unset _script _path