dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 9f18c4dea6ef0a68fa8a1c5be4f340439802a9ba (patch)
parent 7e9f3763aa61c5f5846f9c9a3b59706f4d6253be
Author: Alexander Karle <akarle@umass.edu>
Date:   Thu,  3 May 2018 17:12:16 -0400

Tweaks to bash environment

Diffstat:
Mbash/aliases | 1+
Mbash/bash_prompt | 10+++++-----
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git 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 @@ -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