27 lines
560 B
Text
27 lines
560 B
Text
|
#
|
||
|
# ~/.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
|