#MidnightCommander just told me, that setting the #CDPATH environment variable might be a good way to save some keystrokes when using the `cd` command.
I'm inclined to agree with him.
#MidnightCommander just told me, that setting the #CDPATH environment variable might be a good way to save some keystrokes when using the `cd` command.
I'm inclined to agree with him.
Does anyone else use $CDPATH in #bash? I have CDPATH=~/git/, and can directly `cd` to any #git repository in that directory. It takes a :-separated list, just like PATH.
I've used it for a while and there don't seem to be many downsides - and it's motivated me to to keep my projects more organized than before. #shell #cdpath
C'est principalement le Memo 1 qui a inspiré les lecteurs de LinuxFr.org avec conseils pour ajout de deux nouvelles commandes :
- #pushd, #popd et #dirs : pour les allers et retours
- #CDPATH : pour les allés directs
https://www.grimoire-command.es/2018/memo_1.html
Et puis une belle partie sur la gestion des processus (en arrière plan) dans le Mémo 19 :
Table des matières 1. pwd : affiche le chemin du répertoire courant depuis la racine 2. ls : liste le contenu du répertoire courant 3. cd : changement de répertoire (change directory) 4. pushd, popd et dirs : pour les allers et retours 5. CDPATH : pour les allés directs 6. file : renvoie la nature …