summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-22 11:13:59 -0500
committerMarc Coquand <marc@mccd.space>2024-05-22 11:13:59 -0500
commit7b41c919294cd9924bd62924f2e1dd3a7fc0f1e9 (patch)
treedf6f6b56b22f77206f32ca99f78e98e697db41f0
parent6ae7f049902679834bf810c85172dd6e67acba3f (diff)
downloadrcm-7b41c919294cd9924bd62924f2e1dd3a7fc0f1e9.tar.gz
rcm-7b41c919294cd9924bd62924f2e1dd3a7fc0f1e9.tar.bz2
rcm-7b41c919294cd9924bd62924f2e1dd3a7fc0f1e9.zip
Update kshrc
-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