From 7b41c919294cd9924bd62924f2e1dd3a7fc0f1e9 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Wed, 22 May 2024 11:13:59 -0500 Subject: Update kshrc --- kshrc | 3 +++ profile | 4 ++-- 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 -- cgit v1.2.3