D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Command-line: jump to arbitrary parent dir from deeply nested dir (bash)

 

On 2 September 2013 14:23, Philip Hudson <phil.hudson@xxxxxxxxx> wrote:
alias up        'cd `pwd | sed \'s|\(.*/\!:1/\).*|\1|\'`'

complete up    'p@*@`pwd|tr \'/\' \' \'`@'

Surely that would be better aliased "back"?

"up" is simply "cd .." - at least for me.
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq