dotfiles/bash/.bashrc
Marty Oehme 6ac0b683a3
[home] Remove module
Removed home module, since it harbors three necessary files for other
modules: the basic configuration files for bash, and the environment
setup for zsh to work with xdg specifications.

While a descriptive module, the splitting enables further modularization
and is more coherent towards their specific uses (bash and zsh setup).
2020-06-05 22:18:13 +02:00

20 lines
423 B
Bash

#
# ~/.bashrc
#
# shellcheck disable=SC1090
CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[ -f "$CONFDIR/sh/alias" ] && source "$CONFDIR/sh/alias"
# load additional aliases
if [ -d "$CONFDIR/sh/alias.d" ]; then
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
fi
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '