31 lines
799 B
Plaintext
31 lines
799 B
Plaintext
# shellcheck shell=bash
|
|
# shellcheck disable=SC1090,SC1091,SC2034
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
source "$XDG_CONFIG_HOME/bash/.bash_aliases"
|
|
|
|
# If we have local bash-completion, use it
|
|
if [[ -f $HOME/.local/bin/bash_completion ]]; then
|
|
. "$HOME/.local/bin/bash_completion"
|
|
fi
|
|
|
|
# If we have local rust installed, set it up
|
|
if [[ -f $HOME/.local/share/cargo/env ]]; then
|
|
. "$HOME/.local/share/cargo/env"
|
|
fi
|
|
|
|
# Bash XDG history
|
|
export HISTFILE="$XDG_STATE_HOME"/bash/history
|
|
|
|
# Helpful tool: https://bash-prompt-generator.org
|
|
# On github: https://github.com/Scriptim/bash-prompt-generator
|
|
PS1='[\u@\h \w]\$ '
|
|
|
|
# Starship after defining custom prompt, easy to remove
|
|
eval "$(starship init bash)"
|
|
|
|
# Zoxide init has to be last
|
|
eval "$(zoxide init bash)"
|