From be8e8b9f84e58530a7a2fd3e8f4d382604f088e5 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Tue, 25 Jul 2023 11:45:32 +0200 Subject: [PATCH] Add bash and git configs --- bash/.bash_profile | 6 ++++++ bash/.bashrc | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 bash/.bash_profile create mode 100644 bash/.bashrc 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 +