I have this set up in my
alias re='cd /home/terdon/research/'
So, if I type
re at the BASH prompt, I directly
cd into my
This works fine if you only want to change into the directory in question. Another way would be to set an alias that echoes the directory path:
alias foo='echo /path/to/bar'
You can then do, for example:
$ ls `foo`
You will need the inverted commas though. As far as I know there is no way to set up a simple character, with no quotes or
$ to do what you want in BASH. It is possible in zsh with "named directories".
Finally, you can find some interesting tips here.