All Hail cdargs!

Liste des GroupesRevenir à col advocacy 
Sujet : All Hail cdargs!
De : OFeem1987 (at) *nospam* teleworm.us (Chris Ahlstrom)
Groupes : comp.os.linux.advocacy
Date : 08. Nov 2024, 13:17:06
Autres entêtes
Organisation : None
Message-ID : <vgkvg2$36gth$2@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : slrn/1.0.3 (Linux)
rbowman wrote this post while blinking in Morse code:

On Thu, 7 Nov 2024 21:00:03 -0000 (UTC), candycanearter07 wrote:
>
rbowman <bowman@montana.com> wrote at 02:56 this Thursday (GMT):
On Thu, 7 Nov 2024 01:30:04 -0000 (UTC), candycanearter07 wrote:
>
Also pushd/popd are pretty nice sometimes.
>
Thanks. I'd forgotten about them.
 
Yeah, they're more useful for moving between tasks, or sometimes when
you need to do something in a certain working directly.
>
Over the years for my work source tree I've developed an extensive alias
file like
>
alias cadesri='cd $SRC_DIR/newmap/cadmap/lgim'
alias cadmsg='cd $SRC_DIR/cadmsg'
alias cfs='cd $SRC_DIR/net/cfsd
>
My own projects aren't so well organized and it would be handy if I'm
working in bar and want to snoop around in ../../python/django/bin to popd
back when I'm done.  I used to do it but it's one of those things that id
you don't use them somewhat often you forget the exist.

You should try cdargs. Once installed, add this to your .bashrc file:

    source /etc/cdargs-bash.sh

(There is also a cdargs-tcsh.csh version).

This adds some shell functions to your environment.

Then cd to where you want, and type the "mark" command.  To get to that
directory (e.g. /home/user/development/git) later, type "cdb git".

If you have bash completion installed, you can use tab-completion as well:

    $ cdb git/<tab>...

alias cfs='cd $SRC_DIR/net/cfsd

    $ cdb cfsd

Running cdargs itself brings up a list of marked directories, and offers other
comands; "man cdargs".

--
I bought the latest computer; it came fully loaded.
It was guaranteed for 90 days, but in 30 was outmoded!
  -- The Wall Street Journal passed along by Big Red Computer's SCARLETT

Date Sujet#  Auteur
5 Nov 24 * All Hail Midnight Commander!29Farley Flud
6 Nov 24 +* Re: All Hail Midnight Commander!13Chris Ahlstrom
7 Nov 24 i`* Re: All Hail Midnight Commander!12candycanearter07
7 Nov 24 i +* Re: All Hail Midnight Commander!7rbowman
7 Nov 24 i i`* Re: All Hail Midnight Commander!6candycanearter07
8 Nov 24 i i `* Re: All Hail Midnight Commander!5rbowman
8 Nov 24 i i  `* All Hail cdargs!4Chris Ahlstrom
8 Nov 24 i i   `* Re: All Hail cdargs!3rbowman
8 Nov 24 i i    +- Re: All Hail cdargs!1candycanearter07
8 Nov 24 i i    `- Re: All Hail cdargs!1Chris Ahlstrom
9 Nov 24 i `* Re: All Hail Midnight Commander!4Lawrence D'Oliveiro
9 Nov 24 i  `* Re: All Hail Midnight Commander!3rbowman
9 Nov 24 i   +- Re: All Hail Midnight Commander!1candycanearter07
9 Nov 24 i   `- Re: All Hail Midnight Commander!1DFS
8 Nov 24 +* Re: All Hail Midnight Commander!10Stéphane CARPENTIER
9 Nov 24 i`* Re: All Hail Midnight Commander!9Farley Flud
9 Nov 24 i +- Re: All Hail Midnight Commander!1Joel
10 Nov 24 i `* Re: All Hail Midnight Commander!7Stéphane CARPENTIER
10 Nov 24 i  `* Re: All Hail Midnight Commander!6Farley Flud
10 Nov 24 i   `* Re: All Hail Midnight Commander!5Stéphane CARPENTIER
10 Nov 24 i    +- Re: All Hail Midnight Commander!1Joel
10 Nov 24 i    `* Re: All Hail Midnight Commander!3Farley Flud
10 Nov 24 i     +- Re: All Hail Midnight Commander!1Joel
11 Nov 24 i     `- Re: All Hail Midnight Commander!1Stéphane CARPENTIER
9 Nov 24 `* Re: All Hail Midnight Commander!5Physfitfreak
9 Nov 24  `* Re: All Hail Midnight Commander!4Farley Flud
10 Nov 24   `* Re: All Hail Midnight Commander!3Physfitfreak
10 Nov 24    `* Re: All Hail Midnight Commander!2Farley Flud
11 Nov 24     `- Re: All Hail Midnight Commander!1Physfitfreak

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal