[lug] CDPATH?

Jeffrey S. Haemer jeffrey.haemer at gmail.com
Thu Apr 14 06:26:34 MDT 2016


Jed,

Another helpful tweak for cd is "shopt -s globstar"

shopt -s globstar
mkdir -p a/b/c/d/e
cd **/e
pwd


It's no DWIM, but sometimes it's a good shortcut. I'm lazy and a bad
typist, so my .bashrc includes this:

shopt -s cdspell dirspell globstar

Also this:

alias mroe=more  # for Evi

Perhaps, however, tonight's emacs talk will include ways to use DWIM
commands to turn emacs into the shell-of-your-dreams. :-)

On Wed, Apr 13, 2016 at 6:38 PM, Jed S. Baer <blug at jbaer.cotse.net> wrote:

> On Wed, 13 Apr 2016 17:59:47 -0600
> Zan Lynx wrote:
>
> > Notice that "warez" is not in your CDPATH. To make "cd warez" work you'd
> > need "CDPATH=/home/jbaer/incoming"
>
> Aha. Somehow, I had it in my head it'd be recursive. Funny, how the brain
> works sometimes. Thanks.
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>



-- 
Jeffrey Haemer <jeffrey.haemer at gmail.com>
720-837-8908 [cell], http://seejeffrun.blogspot.com [blog],
http://www.youtube.com/user/goyishekop [vlog]
*פרייהייט? דאס איז יאַנג דינען וואָרט.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20160414/41a14400/attachment.html>


More information about the LUG mailing list