Add bash and git configs

This commit is contained in:
Maciej Jur 2023-07-25 11:45:32 +02:00
parent 83b8a2fc23
commit be8e8b9f84
No known key found for this signature in database
GPG key ID: ADA3BF323198C639
2 changed files with 28 additions and 0 deletions

6
bash/.bash_profile Normal file
View file

@ -0,0 +1,6 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc

22
bash/.bashrc Normal file
View 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