Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
_ZeD_
· 1mo ago · 0 comments
well.. it's in zsh (and probably any other *sh) too
Comments
[–]
vbernat
1mo ago
In Zsh, you can set PATH with path=(~/.local/bin $path). There, it works as shell expansion works.
[–]
kccqzy
1mo ago
In fish, you can just do `fish_add_path ~/.local/bin`. Adding a directory to your PATH is so common that there’s a function to do it. And it takes effect immediately in all running instances of the shell.
https://fishshell.com/docs/current/cmds/fish_add_path.html
[–]
NetMageSCW
1mo ago
That seems like COBOL as a shell.