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)

 

alias up        'cd `pwd | sed \'s|\(.*/\!:1/\).*|\1|\'`'

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


On 1 Sep, 2013, at 11:08 am, Philip Hudson wrote:

https://github.com/vigneshwaranr/bd

I'll be implementing a tcsh version later, for the screaming millions of tcsh users (me & Gordon)

--
Phil Hudson                  http://hudson-it.no-ip.biz
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63


--
Phil Hudson                  http://hudson-it.no-ip.biz
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq