diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2024-01-08 18:50:10 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2024-01-08 18:50:10 +0100 |
| commit | 39abd6b00a427ac4d33564d9a00cde35abe90be8 (patch) | |
| tree | c92ea389ab832929263612b556f8f141feb9ea1a /shell/.profile | |
| parent | 52ee08731eeebed097cf2d17c76597d7ded5b038 (diff) | |
.
Diffstat (limited to 'shell/.profile')
| -rw-r--r-- | shell/.profile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/shell/.profile b/shell/.profile index f0077e1..6a15331 100644 --- a/shell/.profile +++ b/shell/.profile @@ -8,6 +8,11 @@ prepend_path () { esac } +append_lua_path() { + LUA_PATH="${LUA_PATH:+$LUA_PATH;}$1/?.lua;$1/?/init.lua" + LUA_CPATH="${LUA_CPATH:+$LUA_CPATH;}$1/?.so" +} + [ -z "$XDG_RUNTIME_DIR" ] && \ export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir @@ -34,7 +39,6 @@ export VISUAL=nvim prepend_path ~/.local/opt/river/bin prepend_path ~/.local/opt/janet/bin -prepend_path ~/.local/opt/pkgsrc/bin prepend_path ~/.local/opt/nnn/bin prepend_path ~/.local/bin export PATH @@ -42,6 +46,9 @@ export PATH [ -n "$(command -v luarocks)" ] && \ eval "$(luarocks path)" +append_lua_path ~/repos/private/bk-lua/src_lua +export LUA_PATH +export LUA_CPATH # nix_profile_sh=~/.nix-profile/etc/profile.d/nix.sh # [ -e $nix_profile_sh ] && . $nix_profile_sh |
