Skip to content

Commit

Permalink
bashrc: adding mise
Browse files Browse the repository at this point in the history
  • Loading branch information
icehess committed Jun 10, 2024
1 parent 0f3dca1 commit 62c2847
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,25 @@ elif [ -f /usr/local/bin/brew ]; then
# export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
fi

if [ -f /usr/local/opt/asdf/libexec/asdf.sh ]; then
. /usr/local/opt/asdf/libexec/asdf.sh
elif [ -f /opt/homebrew/opt/asdf/libexec/asdf.sh ]; then
. /opt/homebrew/opt/asdf/libexec/asdf.sh
elif [ -f /opt/asdf-vm/asdf.sh ]; then
. /opt/asdf-vm/asdf.sh
elif [ -f ${HOME}/.asdf/asdf.sh ]; then
. ${HOME}/.asdf/asdf.sh
fi

# }}}

# If not running interactively, don't do anything
if [[ $- != *i* ]] ; then
if type -P mise >/dev/null ; then
eval "$(mise activate bash --shims)"
elif [ -f /usr/local/opt/asdf/libexec/asdf.sh ]; then
. /usr/local/opt/asdf/libexec/asdf.sh
elif [ -f /opt/homebrew/opt/asdf/libexec/asdf.sh ]; then
. /opt/homebrew/opt/asdf/libexec/asdf.sh
elif [ -f /opt/asdf-vm/asdf.sh ]; then
. /opt/asdf-vm/asdf.sh
elif [ -f ${HOME}/.asdf/asdf.sh ]; then
. ${HOME}/.asdf/asdf.sh
fi

return
fi


# Good Shell {{{
# If set, bash checks the window size after each external (non-builtin) command and, if necessary, updates the values of LINES
# and COLUMNS. This option is enabled by default.
Expand Down Expand Up @@ -180,6 +181,10 @@ fi

[ -f /opt/homebrew/opt/asdf/etc/bash_completion.d/asdf.bash ] && . /opt/homebrew/opt/asdf/etc/bash_completion.d/asdf.bash
[ -f ${HOME}/.asdf/completions/asdf.bash ] && . ${HOME}/.asdf/completions/asdf.bash

if type -P mise >/dev/null ; then
eval "$(mise activate bash)"
fi
# }}}

# Aliases {{{
Expand Down

0 comments on commit 62c2847

Please sign in to comment.