bash: Moved bashrc execs to bash_exec

This commit is contained in:
GaspardCulis 2024-08-18 19:00:34 +02:00
parent bb04c6845c
commit 6b9531e35a
No known key found for this signature in database
GPG key ID: BC18146756955609
2 changed files with 17 additions and 15 deletions

View file

@ -15,6 +15,23 @@ export ZELLIJ_AUTO_EXIT=true
export ZELLIJ_CONFIG_FILE=~/.config/zellij/config.kdl export ZELLIJ_CONFIG_FILE=~/.config/zellij/config.kdl
eval "$(zellij setup --generate-auto-start bash)" eval "$(zellij setup --generate-auto-start bash)"
# fnm
FNM_PATH="$HOME/.local/share/fnm"
if test -d "$FNM_PATH" ; then
export PATH="$FNM_PATH:$PATH"
eval "$(fnm env --use-on-cd)"
fi
# Prompt
if command -v starship > /dev/null; then
eval "$(starship init bash)"
fi
# Zoxide
if command -v zoxide > /dev/null; then
eval "$(zoxide init --cmd cd bash)"
fi
if command -v jaaj &> /dev/null && command -v dotacat &> /dev/null; then if command -v jaaj &> /dev/null && command -v dotacat &> /dev/null; then
jaaj jaaj
fi fi

View file

@ -30,13 +30,6 @@ export EDITOR="hx"
export HISTFILESIZE= export HISTFILESIZE=
export HISTSIZE=4294967295 export HISTSIZE=4294967295
# fnm
FNM_PATH="$HOME/.local/share/fnm"
if test -d "$FNM_PATH" ; then
export PATH="$FNM_PATH:$PATH"
eval "$(fnm env --use-on-cd)"
fi
CARGO_ENV_PATH="$HOME/.cargo/env" CARGO_ENV_PATH="$HOME/.cargo/env"
if [ -f "$CARGO_ENV_PATH" ]; then if [ -f "$CARGO_ENV_PATH" ]; then
. "$CARGO_ENV_PATH" . "$CARGO_ENV_PATH"
@ -50,11 +43,3 @@ fi
if [ -f ~/.bash_exec ]; then if [ -f ~/.bash_exec ]; then
source ~/.bash_exec source ~/.bash_exec
fi fi
if command -v starship > /dev/null; then
eval "$(starship init bash)"
fi
if command -v zoxide > /dev/null; then
eval "$(zoxide init --cmd cd bash)"
fi