bash: fix prompt colors, PATH, other options
This commit is contained in:
parent
089e1c92b5
commit
7e0642e08d
12
.bashrc
12
.bashrc
@ -5,7 +5,12 @@
|
|||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *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
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
if [[ -n "$DISPLAY" ]] ; then
|
if [[ -n "$DISPLAY" ]] ; then
|
||||||
@ -16,7 +21,7 @@ export EDITOR="vim"
|
|||||||
export GREP_COLOR="1;33"
|
export GREP_COLOR="1;33"
|
||||||
export GOPATH="$HOME/projects/go"
|
export GOPATH="$HOME/projects/go"
|
||||||
export HISTCONTROL="ignoredups"
|
export HISTCONTROL="ignoredups"
|
||||||
export PATH="$PATH:~/bin:~/.gem/ruby/2.3.0/bin"
|
export PATH="$PATH:$HOME/bin:"
|
||||||
export WORKON_HOME="~/.virtualenvs"
|
export WORKON_HOME="~/.virtualenvs"
|
||||||
|
|
||||||
# less colors
|
# less colors
|
||||||
@ -65,3 +70,6 @@ BASE16_SHELL="$HOME/.config/base16-shell/scripts/base16-default-dark.sh"
|
|||||||
|
|
||||||
# AWS
|
# AWS
|
||||||
[[ -f $HOME/.aws ]] && source "$HOME/.aws"
|
[[ -f $HOME/.aws ]] && source "$HOME/.aws"
|
||||||
|
|
||||||
|
shopt -s autocd
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user