3 ms·
# ============= # # Bash-specific # # ============= # alias sudo="sudo --preserve-env" # Up & down map to history search once a command has been
by zanbaldwin 8y ago
# ============= #
# Bash-specific #
# ============= #
alias sudo="sudo --preserve-env"
# Up & down map to history search once a command has been started.
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
alias tmux="tmux attach || tmux new"
alias fuck='sudo "$SHELL" -c "$(history -p !!)"'
alias fucking="sudo"
# ========================================================= #
# GnuPG SSH Authentication #
# ========================================================= #
# - Install "gnupg2" and "scdaemon". #
# - Add "enable-ssh-support" to "~/.gnupg/gpg-agent.conf" #
# - Or copy existing config from this repository #
# - Find [A]uthentication keygrips "gpg -K --with-keygrip" #
# - Add appropriate keygrips to "~/.gnupg/sshcontrol" #
# ========================================================= #
which gpgconf 1>/dev/null 2>&1
if [ $? -eq 0 ]; then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
fi
- adontz 8y agoYou can use "tmux new -A" instead of two commands