Shell (Bash and Zsh) Notes
Don’t use ~ in scripts, use $HOME
I used ~ several times in scripts and it may or may not work. Use $HOME
to refer to the home dir, it always works.
$HOME
I used ~ several times in scripts and it may or may not work. Use $HOME
to refer to the home dir, it always works.