summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc12
1 files changed, 9 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index 9bc6ef7..68db74e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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