bash: fix prompt colors, PATH, other options

This commit is contained in:
Corrado Primier 2020-12-01 23:58:26 +00:00
parent 089e1c92b5
commit 7e0642e08d

12
.bashrc
View File

@ -5,7 +5,12 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='\[\033[0;37m\][\u@\h $(date +%H:%M) \W]$\[\033[0;0m\] '
CYAN="\[$(tput setaf 4)\]"
RESET="\[$(tput sgr0)\]"
# Set prompts
PS1="${CYAN}[\u@\h ${RESET}\D{%H:%M}${CYAN} \W]${RESET}\$ "
PS2="> "
[ -z "$PS1" ] && return
if [[ -n "$DISPLAY" ]] ; then
@ -16,7 +21,7 @@ export EDITOR="vim"
export GREP_COLOR="1;33"
export GOPATH="$HOME/projects/go"
export HISTCONTROL="ignoredups"
export PATH="$PATH:~/bin:~/.gem/ruby/2.3.0/bin"
export PATH="$PATH:$HOME/bin:"
export WORKON_HOME="~/.virtualenvs"
# less colors
@ -65,3 +70,6 @@ BASE16_SHELL="$HOME/.config/base16-shell/scripts/base16-default-dark.sh"
# AWS
[[ -f $HOME/.aws ]] && source "$HOME/.aws"
shopt -s autocd
shopt -s checkwinsize