Crea un link simbolico nella tua home directory:
$ ln -s path/to/a/really/deeply/nested/director/my-project ~/my-project
$ cd ~/my-project
Puoi anche sfruttare la variabile CDPATH.
E potresti definire un bash function nel tuo $HOME/.bashrc come
# in file ~/.bashrc
function work() {
cd $HOME/path/to/a/really/deeply/nested/director/my-project
}
E la recente bash o ancora meglio zsh potrebbe permetterti cose come
cd **/my-project
Supponendo che tu abbia un solo my-project/ profondamente nidificato directory in tutta la tua gerarchia ad albero. Il ** sta facendo l'equivalente di un find quindi può essere lento.
Aggiungi una variabile nel tuo .bashrc:
MYPROJECT=path/to/a/really/deeply/nested/director/my-project
da usare:
$ cd $MYPROJECT