Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by vbernat

10 hours ago

In Zsh, you can set PATH with path=(~/.local/bin $path). There, it works as shell expansion works.

1 comment

vbernat

Reply

kccqzy  10 hours 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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities