diff --git a/bashrc.txt b/bashrc.txt index 2d70016e..b96f93e6 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -144,9 +144,11 @@ ex () fi } -# Displays current git branch if there is any +# Formats history command with dates/times +HISTTIMEFORMAT="%d/%m/%y %T " -export PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[01;37m\] $(git branch 2>/dev/null | grep '^*' | colrm 1 2)\n\033[01;32m└─▶ \033[37m' +# Displays current git branch if there is any +export PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\033[01;37m\] $(git branch 2>/dev/null | grep '^*' | colrm 1 2)\n\033[01;32m└─▶ \033[37m' # Custom Bash Commands alias .="cd"