# shellcheck shell=bash # shellcheck disable=SC1090,SC1091,SC2034 # If not running interactively, don't do anything [[ $- != *i* ]] && return # Workaround for SSH/Login sessions # https://github.com/systemd/systemd/issues/7641#issuecomment-680694017 if [[ -f /usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator ]]; then set -a eval "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)" set +a fi # If we have local bash-completion, use it [[ -f $HOME/.local/bin/bash_completion ]] && . "$HOME/.local/bin/bash_completion" # 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]\$ ' [[ -f $XDG_CONFIG_HOME/bash/.bash_aliases ]] && source "$XDG_CONFIG_HOME/bash/.bash_aliases"