diff options
author | ubq323 <ubq323@ubq323.website> | 2023-07-05 19:48:40 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-07-05 19:48:40 +0100 |
commit | 28b02299c6134b8af9954c28ebf278628c8d5726 (patch) | |
tree | 89f9c1d2a50466f98f569ae1d1eca3a5e145b8e0 /.bashrc | |
parent | 76d6dc6bce328ce38e4800a43e44d2f91d18f7bf (diff) |
thing
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -36,17 +36,23 @@ export XDG_CONFIG_HOME=$HOME/.config export EDITOR=kak # paths -export LUA_PATH_5_3="$HOME/.local/lib/lua/5.3/?.lua;;" -export LUA_PATH_5_1="$HOME/.local/lib/lua/5.1/?.lua;;" +export LUA_PATH_5_3="$HOME/.local/lib/lua/5.3/?.lua;$HOME/.local/share/lua/5.3/?.lua;;" +export LUA_PATH_5_1="$HOME/.local/lib/lua/5.1/?.lua;$HOME/.local/share/lua/5.1/?.lua;;" export LUA_CPATH_5_3="$HOME/.local/lib/lua/5.3/?.so;;" export LUA_CPATH_5_1="$HOME/.local/lib/lua/5.1/?.so;;" export MANPATH="$HOME/.local/share/man:" add_path () { - export PATH="$1:$PATH" + case ":$PATH:" in + *:"$1":*) + ;; + *) + PATH="${PATH:+$PATH:}$1" + esac } add_path ~/.local/bin +add_path ~/.luarocks/bin add_path ~/bin lb=~/."$(uname -n)".bashrc |