# this is my bashrc config. there are many like it, but this one is mine. # shellcheck shell=bash # Defaults export DOTFILES="$HOME/.dotfiles" # Run x-load-configs in your terminal to reload the files. function x-load-configs() { HOST="$(hostname -s)" # Load the shell dotfiles, and then some: for file in $DOTFILES/config/{exports,alias,functions}; do [ -r "$file" ] && source "$file" [ -r "$file-secret" ] && source "$file-secret" [ -r "$file-$HOST" ] && source "$file-$HOST" [ -r "$file-$HOST-secret" ] && source "$file-$HOST-secret" done } x-load-configs # Import ssh keys in keychain ssh-add -A 2>/dev/null; # shellcheck source=../config/fzf/fzf.bash [ -f "${DOTFILES}/config/fzf/fzf.bash" ] \ && source "${DOTFILES}/config/fzf/fzf.bash"