Browse Source

add $HOME/.local/bin to $PATH

Fabian Peter Hammerle 5 years ago
parent
commit
5a0ee5c78b
2 changed files with 5 additions and 0 deletions
  1. 2 0
      README.md
  2. 3 0
      rc.xsh

+ 2 - 0
README.md

@@ -2,6 +2,8 @@
 
 http://xon.sh/envvars.html
 
+https://xon.sh/tutorial.html
+
 [StackExchange: What should I set my locale to ...?](https://unix.stackexchange.com/questions/149111/what-should-i-set-my-locale-to-and-what-are-the-implications-of-doing-so)
 
 ## Installation

+ 3 - 0
rc.xsh

@@ -54,6 +54,9 @@ $LC_MONETARY = 'de_AT.UTF-8'
 $LC_NUMERIC = 'C.UTF-8'
 # A4
 $LC_PAPER = 'de_AT.UTF-8'
+USER_BIN_PATH = os.path.join($HOME, '.local', 'bin')
+if os.path.isdir(USER_BIN_PATH):
+    $PATH.insert(0, USER_BIN_PATH)
 $EDITOR = 'vim'
 # required by pinentry-tty when using gpg command:
 $GPG_TTY = $(tty)