From 95a44798f135a9925a3637d84b3db79e95ab19ac Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Tue, 8 Sep 2020 18:48:00 +0000 Subject: [PATCH] added gittree alias --- one-time-stuff/basic-settings.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/one-time-stuff/basic-settings.sh b/one-time-stuff/basic-settings.sh index 4242b89..bcf5ce6 100755 --- a/one-time-stuff/basic-settings.sh +++ b/one-time-stuff/basic-settings.sh @@ -34,6 +34,27 @@ esac # ---------------------------------------------------------- +echo "----- Add gittree alias to ~/.bashrc ----------------" +read -p 'Add "alias gittree"? [y/N]: ' add_alias +case $add_alias in + [Yy]* ) + echo 'Appending ~/.bashrc' + ( + cat << 'TERM' + +# ABS gittree alias +alias gittree='git log --all --decorate --oneline --graph' + +TERM +) >> "$HOME/.bashrc" + ;; + * ) + echo 'Skipping' + ;; +esac + +# ---------------------------------------------------------- + echo "----- Append default TERM to ~/.bashrc --------------" read -p 'Add "export TERM=screen-256color"? [y/N]: ' add_term case $add_term in