From 9f18c4dea6ef0a68fa8a1c5be4f340439802a9ba Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Thu, 3 May 2018 17:12:16 -0400 Subject: [PATCH] Tweaks to bash environment --- bash/aliases | 1 + bash/bash_prompt | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bash/aliases b/bash/aliases index f035a54..e9263e4 100644 --- a/bash/aliases +++ b/bash/aliases @@ -12,6 +12,7 @@ alias ll='ls -lh ${colorflag}' # Git aliases alias ga='git add' +alias gc='git commit' alias gp='git push' alias gst='git status' alias gl='git log --stat' diff --git a/bash/bash_prompt b/bash/bash_prompt index 1513f69..6867cb5 100644 --- a/bash/bash_prompt +++ b/bash/bash_prompt @@ -25,14 +25,14 @@ if tput setaf 1 &> /dev/null; then tput sgr0 RESET="\[$(tput sgr0)\]" export PS1="$BOLD$BLUE\w $RESET$GRAY\$(parse_git_branch)\n$BOLD$MAGENTA\$ $RESET" - export PS2="\[$ORANGE\]→ \[$RESET\]" + export PS2="$ORANGE→ $RESET" else # TODO: write better case for too few colors... - export PS1="\w\n\$" - export PS2=">" + export PS1="\w\n\$ " + export PS2="> " fi else # TODO: write better case for no tput... - export PS1="\w\n\$" - export PS2=">" + export PS1="\w\n\$ " + export PS2="> " fi -- libgit2 0.28.4