mirror of
https://github.com/itme-brain/bash.git
synced 2026-05-08 15:30:11 -04:00
init
This commit is contained in:
commit
6667f36a9f
3 changed files with 225 additions and 0 deletions
21
bashrc
Normal file
21
bashrc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue