I have a problem to manage long paths. How can I get quickly to paths like
/Users/User/.../.../.../.../.../Dev/C/card.c
I tried an alias
alias cd C='cd /Users/User/.../.../.../.../.../Dev/C'
but I am unable to do aliases for two separate words. I have long lists of Bash aliases and paths in CDPATH, so I am hesitating to make them more. How can manage long paths?
[Ideas for Replies]
The user litb’s reply revealed some of my problems in the management. Things, such as ‘CTRL+R’, ‘!-3:1:2:4:x’ and ‘incremental search’, are hard for me. They probably help in navigating long directories and, in the sense, management.
Consider using symbolic links. I have a
~/work/directory where I place symlinks to all my current projects.You may also use shell variables:
Then: