dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit b318f2a7228b0695fdd9a59cde66aa058ee9290f
parent 76f96c53690c838785d1d6ddaf7eee14e8c5915f
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sun, 27 Dec 2020 23:40:33 -0500

Change bash prompt

Diffstat:
M.bashrc | 12++----------
1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -30,16 +30,7 @@ else color_prompt= fi -get_git_branch() { - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' -} - -if [ "$color_prompt" = yes ]; then - PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:\[\033[01;33m\]$(get_git_branch)\[\033[00m\]\$ ' -else - PS1='\u@\h:\w:$(get_git_branch)\$ ' -fi -unset color_prompt +PS1='[\t] \h \w $ ' # Enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then @@ -92,3 +83,4 @@ fi # [ $(tty) != "/dev/tty1" ]; then # exec tmux # fi +[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh