On Sun, Apr 11, 2021 at 05:00:23PM +0000, Lee wrote: > <aside> > really?!! What do you have in PS1? > </aside>
PS1='\h:\w\$ ' > IMO, the if test needs an else and the directory name shouldn't be > typed out multiple times -- it belongs in an e-var: > > dir="$HOME/AppImages" > if [ -d "$dir" ] ; then > PATH="$dir:$PATH" > else > echo "OnNoes!! The directory \"$dir\" does not exist!" >&2 > fi That's fine, but it's not an "e-var" (environment variable). It's just a regular variable.