System setup
This commit is contained in:
parent
a0fd0e91fe
commit
949b65ac8b
12 changed files with 265 additions and 9 deletions
26
dot_bashrc
Normal file
26
dot_bashrc
Normal file
|
@ -0,0 +1,26 @@
|
|||
#
|
||||
# ~/.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
|
Loading…
Add table
Add a link
Reference in a new issue