dotfiles/dot_bashrc

27 lines
560 B
Text
Raw Permalink Normal View History

2022-11-25 20:15:34 +00:00
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
## Shell options
shopt -s autocd # Auto "cd" when entering just a path
set -o noclobber # Prevent overwrite of existing files
shopt -s checkwinsize # Line wrap on window resize
## History
export HISTCONTROL='erasedups:ignorespace'
## Prompt
PS1='[\u@\h \W]\$ '
## Aliases
alias ls='ls --color=auto'
alias e='nvim'
# gpg-agent
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
gpg-connect-agent updatestartuptty /bye > /dev/null