19 lines
589 B
Bash
Raw Permalink Normal View History

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
neofetch
alias ls='ls --color=auto'
export PS1="\[\e[36m\][\[\e[m\]\[\e[36m\]\A\[\e[m\]\[\e[36m\]]\[\e[m\] \[\e[34m\]\u\[\e[m\]\[\e[35m\]@\[\e[m\]\[\e[31m\]\h\[\e[m\] \[\e[32m\]\w\[\e[m\] \[\e[31m\]\$(parse_git_branch)\[\e[m\]\\$ "
# export PS1="\u@\h \[\e[32m\]\w \[\e[91m\]\$(parse_git_branch)\[\e[00m\]$ "
#PS1='[\u@\h \W]\$ '
#PS1="\u@\h \[\e[32m\]\w \[\e[91m\]\$(parse_git_branch)\[\e[00m\]$ "