[Fish] Add local node_module’s bin to path

This commit is contained in:
Lucien Cartier-Tilet 2022-07-03 12:24:10 +02:00
parent 10e1695b16
commit fa2e092f89
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -171,15 +171,16 @@ For instance, my ~PATH~ variable needs Rusts Cargos binaries, Gos binar
my own executables, and some more. my own executables, and some more.
#+NAME: extra-paths #+NAME: extra-paths
| additional path | what it leads to | | additional path | what it leads to |
|--------------------------+--------------------------------------| |--------------------------+---------------------------------------------------|
| $HOME/.local/bin | Custom executables, see [[file:bin.org]] | | node_modules/.bin | The current directorys NPM binaries if it exists |
| $GOPATH/bin | Go binaries and executables | | $HOME/.local/bin | Custom executables, see [[file:bin.org]] |
| $CARGO_HOME/bin | Rust binaries and executables | | $GOPATH/bin | Go binaries and executables |
| $GEM_HOME/ruby/3.0.0/bin | Ruby 3.0 binaries and executables | | $CARGO_HOME/bin | Rust binaries and executables |
| $GEM_HOME/ruby/2.6.0/bin | Ruby 2.6 binaries and executables | | $GEM_HOME/ruby/3.0.0/bin | Ruby 3.0 binaries and executables |
| $HOME/.cabal/bin | Haskel binaries | | $GEM_HOME/ruby/2.6.0/bin | Ruby 2.6 binaries and executables |
| /usr/lib/xfce-polkit | Path to XFCEs PolKit | | $HOME/.cabal/bin | Haskel binaries |
| /usr/lib/xfce-polkit | Path to XFCEs PolKit |
#+NAME: generate-extra-paths #+NAME: generate-extra-paths
#+BEGIN_SRC emacs-lisp :var paths=extra-paths[,0] :exports none :cache yes #+BEGIN_SRC emacs-lisp :var paths=extra-paths[,0] :exports none :cache yes
@ -187,7 +188,8 @@ my own executables, and some more.
paths " \\\n") paths " \\\n")
#+END_SRC #+END_SRC
#+RESULTS[8fe70e73420376a50897de0f9518689ec3088288]: generate-extra-paths #+RESULTS[5dedcba52b12f9026e90c3b1b91a65d60c139ede]: generate-extra-paths
: node_modules/.bin \
: $HOME/.local/bin \ : $HOME/.local/bin \
: $GOPATH/bin \ : $GOPATH/bin \
: $CARGO_HOME/bin \ : $CARGO_HOME/bin \