summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kshrc3
-rw-r--r--profile4
2 files changed, 5 insertions, 2 deletions
diff --git a/kshrc b/kshrc
index 695619b..7096857 100644
--- a/kshrc
+++ b/kshrc
@@ -13,6 +13,9 @@ alias f-commit="fossil commit && fossil git export"
PS1='$(git branch 2> /dev/null | grep "^\*" | colrm 1 2 | sed -e "s/$/./")${PWD##*/} '
alias jrnl='stitch -t :journal:'
+if [ -x "$(command -v opam)" ]; then
+ eval $(opam env)
+fi
eval "$(direnv export bash)"
eval "$(zoxide init posix --hook prompt)"
diff --git a/profile b/profile
index fcdd098..bb0b4c1 100644
--- a/profile
+++ b/profile
@@ -21,7 +21,7 @@ export HISTSIZE=65535
export STITCH_DIRECTORY=/home/mccd/notes
export STITCH_GREP_CMD=ugrep
+test -r /home/mccd/.opam/opam-init/init.sh && . /home/mccd/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
+
if [ "$(tty)" == "/dev/tty1" ]; then exec dbus-run-session hikari; fi
-# opam configuration
-test -r /home/mccd/.opam/opam-init/init.sh && . /home/mccd/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true