Skip to content

Instantly share code, notes, and snippets.

@amigus
Last active January 8, 2022 02:44
Show Gist options
  • Save amigus/7cc6ab5e86e7546529b6783512f73226 to your computer and use it in GitHub Desktop.
Save amigus/7cc6ab5e86e7546529b6783512f73226 to your computer and use it in GitHub Desktop.
My .bashrc
# The .bashrc adam at migus.org uses
test -s "$HOME/.config/envman/load.sh" && . "$HOME/.config/envman/load.sh" # For envman
javadir=/usr/lib64/jvm/javadir-openjdk; test -d $javadir && export JAVA_HOME=$javadir; unset javadir
mvndir="${HOME}/share/apache-maven-3.6.3"; test -d $mvndir && export MAVEN_HOME=$mvndir; unset mvndir
viexe=$(which vim); test -x $viexe && export EDITOR=$viexe; unset viexe
export LIBVIRT_DEFAULT_URI=qemu:///system
case "$-" in *i*) ;; *) return ;; esac # interactive
test -s ~/.alias && . ~/.alias
eval "$(zoxide init bash)"
test -n "$(which fortune 2>/dev/null)" && echo && fortune && echo
test -z "${OH_MY_POSH_THEME}" && OH_MY_POSH_THEME=powerline
function _oh_my_posh_ps1() {
PS1="$(oh-my-posh --config ~/.poshthemes/${OH_MY_POSH_THEME}.omp.json --error $?)"
}
if test $TERM != linux -a -n "$(which oh-my-posh 2>/dev/null)"; then
PROMPT_COMMAND=_oh_my_posh_ps1
fi
test -z "${DISPLAY}" && return # X display
code=/usr/bin/code; test -x $code && export EDITOR=$code; unset code
export TSS_USERNAME=adam_app
eval export TSS_PASSWORD=$(kwallet-query -r tmg.cloud/$TSS_USERNAME -f tss kdewallet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment