mirror of
https://github.com/itme-brain/bash.git
synced 2026-05-08 07:20:12 -04:00
21 lines
474 B
Bash
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
|