mirror of
https://github.com/itme-brain/bash.git
synced 2026-05-08 07:20:12 -04:00
updated
This commit is contained in:
parent
f6700648a3
commit
f0fe41e942
3 changed files with 26 additions and 8 deletions
13
bashrc
13
bashrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue