1
0
Fork 0
dotfiles/dot_bashrc

27 lines
560 B
Plaintext

#
# ~/.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