Add bash and git configs
This commit is contained in:
parent
83b8a2fc23
commit
be8e8b9f84
6
bash/.bash_profile
Normal file
6
bash/.bash_profile
Normal file
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
|
22
bash/.bashrc
Normal file
22
bash/.bashrc
Normal file
|
@ -0,0 +1,22 @@
|
|||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
# Configure GPG
|
||||
# This is needed to sign git commits
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
# Configure editor
|
||||
export VISUAL="$(command -v nvim 2>/dev/null)"
|
||||
export EDITOR="$(command -v nvim 2>/dev/null || command -v vim 2>/dev/null || command -v nano)"
|
||||
|
||||
# ghcup (Haskell)
|
||||
[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env
|
||||
|
Loading…
Reference in a new issue