4 ms·
I think for most of its use-cases, you could replace it with a one-liner: alias path='echo -e ${PATH//:/\\n} ' and work with it via sort and uniq. I've had
by vim-guru 3y ago
I think for most of its use-cases, you could replace it with a one-liner:
alias path='echo -e ${PATH//:/\\n} '
and work with it via sort and uniq. I've had this alias in my configuration for a couple of decades now, so I'm not bashing on its usefulness though.
- nmz 3y agoor you could just check env for a special variable and load a file once if the env var exists.