diff --git a/bash/.bash_profile b/bash/.bash_profile new file mode 100644 index 0000000..a360f9f --- /dev/null +++ b/bash/.bash_profile @@ -0,0 +1,6 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..8a022e5 --- /dev/null +++ b/bash/.bashrc @@ -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 +