Csh quickie

Atul C Khanna akhanna at bbncc5.UUCP
Thu Feb 13 01:52:01 AEST 1986


In article <15217 at rochester.UUCP> ken at rochester.UUCP (Ipse dixit) writes:
>This alias swaps the top two directories on the stack - useful for
>directory hoppers like me:
>
>alias / 'set dirstack=`dirs -l`; popd; cd $dirstack[1]; pushd $dirstack[2]'
>

Typing "pushd" without any argument does the same thing, at least with
our csh.

-- 
Atul C Khanna
BBN Communications Corporation, Cambridge MA



More information about the Comp.sources.unix mailing list