feat: add bash configs
This commit is contained in:
parent
fd258a4df3
commit
6ee9a85ca1
7 changed files with 275 additions and 0 deletions
21
bash/.bashrc
Normal file
21
bash/.bashrc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# ~/.bashrc
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
BASH_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/bash"
|
||||
|
||||
for config in \
|
||||
env \
|
||||
aliases \
|
||||
build \
|
||||
perf \
|
||||
systemd \
|
||||
tools
|
||||
do
|
||||
file="$BASH_CONFIG_DIR/$config.bash"
|
||||
[[ -r "$file" ]] && source "$file"
|
||||
done
|
||||
|
||||
# Machine/private configuration.
|
||||
[[ -r "$BASH_CONFIG_DIR/local.bash" ]] &&
|
||||
source "$BASH_CONFIG_DIR/local.bash"
|
||||
Loading…
Add table
Add a link
Reference in a new issue