How to add a directory to your PATH

How to add a directory to your PATH

Julia Evans

@b0rk awesome, thank you.

Couple of suggestions, if I may:
'echo $SHELL' shout be easier than the ps combo. 'source some/shell/script' also works with zsh &bash

@xexaxo yeah echo $SHELL is easier but sadly it does not work reliably in my experience which is why i didn’t say that

i think ill change ‘.’ to source though, I like it more too

@b0rk interesting it works fairly consistently here... Admittedly I only do zsh and bash, on Linux
@xexaxo @b0rk at least in the case of bash, $SHELL is only set at start-up if it's not already set in the environment, which would make it unreliable for nested shells.
@xexaxo huh, i came here to suggest the same thing, why isn't it reliable? it exists but can get wrong then it might be worth noting that on the instructions