- cd x to y
-
I added an alias to my bashrc (cshrc) file:
alias cdxy 'echo `pwd` | sed "s|/\!:1\(/\?\)|/\!:2\1|g" > ${_DIRFILE}xy; cd "`cat ${_DIRFILE}xy`"'Now I can be in a folder and change a parent folder using the cdxy alias.
alias cdxy 'echo `pwd` | sed "s|/\!:1\(/\?\)|/\!:2\1|g" > ${_DIRFILE}xy; cd "`cat ${_DIRFILE}xy`"'
Now I can be in a folder and change a parent folder using the cdxy alias.
__ __ __ _ _ ____ _____ _ _ _____ ____ ___
( \/ ) /__\ ( \( )(_ _)( _ )( \( ) ( _ )( _ \ / __)
) ( /(__)\ ) ( _)(_ )(_)( ) ( )(_)( ) /( (_-.
(_/\/\_)(__)(__)(_)\_)(____)(_____)(_)\_)()(_____)(_)\_) \___/