This commit is contained in:
Bryan Ramos 2026-04-08 16:14:55 -04:00
parent f6700648a3
commit f0fe41e942
3 changed files with 26 additions and 8 deletions

13
bashrc
View file

@ -1,10 +1,13 @@
# Use gpg-agent for SSH (YubiKey support)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
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%/*}"
source "$BASH_CONFIG_DIR/prompt"
source "$BASH_CONFIG_DIR/aliases"
. "$BASH_CONFIG_DIR/prompt"
. "$BASH_CONFIG_DIR/aliases"
# Vi mode
set -o vi
@ -12,3 +15,7 @@ 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