aboutsummaryrefslogtreecommitdiff
path: root/shell/.profile
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2026-04-07 12:39:02 +0200
committerbozo.kopic <bozo@kopic.xyz>2026-04-07 12:39:02 +0200
commitbb2dae2aaafab0bb7f1c1d03dc6ebe10deee0b24 (patch)
tree56f36a28293817aaae391e48e1ac36ff7d769d5d /shell/.profile
parentec47c850389e61f69dc413c551e5f2438ce630df (diff)
.
Diffstat (limited to 'shell/.profile')
-rw-r--r--shell/.profile9
1 files changed, 7 insertions, 2 deletions
diff --git a/shell/.profile b/shell/.profile
index 74ba7b3..7dc1338 100644
--- a/shell/.profile
+++ b/shell/.profile
@@ -14,7 +14,7 @@ append_lua_path() {
}
[ -z "$XDG_RUNTIME_DIR" ] && \
- export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
+ export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
[ ! -d "$XDG_RUNTIME_DIR" ] && \
mkdir "$XDG_RUNTIME_DIR" && \
@@ -47,13 +47,18 @@ prepend_path ~/.local/opt/nnn/bin
prepend_path ~/.local/bin
export PATH
-[ -n "$(command -v luarocks)" ] && \
+if command -v luarocks >/dev/null 2>&1; then
eval "$(luarocks path)"
+fi
append_lua_path ~/repos/private/bk-lua/src_lua
export LUA_PATH
export LUA_CPATH
+if command -v opam >/dev/null 2>&1; then
+ eval "$(opam env 2>/dev/null | grep -v ^MANPATH=)"
+fi
+
# nix_profile_sh=~/.nix-profile/etc/profile.d/nix.sh
# [ -e $nix_profile_sh ] && . $nix_profile_sh
# export LOCALE_ARCHIVE=~/.nix-profile/lib/locale/locale-archive