News for hackers. Stuff that matters.
Re:How to navigate directories faster with Bash (2015) by a3n on Thursday April 22, 2021 @06:57AM (#26901291)
> Maybe less well-known is that ~ is an alias for one’s home directory.

And ~mylogin is another alias for ones home directory.

And more generally, ~otherdev is an alias for otherdev's home directory.

Re:How to navigate directories faster with Bash (2015) by chriserin on Thursday April 22, 2021 @08:48AM (#26902132)
This is accomplished with the zsh hash table I believe. `hash -d myproject=~/projects/myproject` will set up the same thing for ~/projects/myproject

$ cd ~myproject

$ pwd

~/projects/myproject