bash/bashrc
2026-04-08 16:14:55 -04:00

21 lines
474 B
Bash

# Use gpg-agent for SSH (YubiKey support)
if command -v gpgconf >/dev/null 2>&1; then
export SSH_AUTH_SOCK
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
# Source prompt and aliases
BASH_CONFIG_DIR="${BASH_SOURCE%/*}"
. "$BASH_CONFIG_DIR/prompt"
. "$BASH_CONFIG_DIR/aliases"
# Vi mode
set -o vi
# Completion
bind 'set completion-ignore-case on'
bind 'set completion-map-case on'
if command -v direnv >/dev/null 2>&1; then
eval "$(direnv hook bash)"
fi