2019-03-15 13:40:03 +00:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
2020-05-19 15:34:28 +00:00
|
|
|
# shellcheck disable=SC1090
|
|
|
|
|
|
|
|
CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
2019-03-15 13:40:03 +00:00
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2020-05-19 15:34:28 +00:00
|
|
|
[ -f "$CONFDIR/sh/alias" ] && source "$CONFDIR/sh/alias"
|
|
|
|
# load additional aliases
|
|
|
|
if [ -d "$CONFDIR/sh/alias.d" ]; then
|
2021-07-07 08:24:04 +00:00
|
|
|
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
|
|
|
|
. "$_alias"
|
|
|
|
done
|
|
|
|
unset _alias
|
2019-03-15 13:40:03 +00:00
|
|
|
fi
|
2021-07-07 08:24:04 +00:00
|
|
|
if [ -d "$CONFDIR/bash/alias.d" ]; then
|
|
|
|
for _alias in "$CONFDIR/bash/alias.d"/*.sh; do
|
|
|
|
. "$_alias"
|
|
|
|
done
|
|
|
|
unset _alias
|
|
|
|
fi
|
|
|
|
|
2019-03-15 13:40:03 +00:00
|
|
|
alias ls='ls --color=auto'
|
|
|
|
PS1='[\u@\h \W]\$ '
|