Merge pull request #181 from roderik/theme/roderik
Added my own theme, based on gentoo's prompt
This commit is contained in:
17
themes/roderik/roderik.theme.bash
Normal file
17
themes/roderik/roderik.theme.bash
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export GIT_PS1_SHOWDIRTYSTATE=true
|
||||||
|
export GIT_PS1_SHOWUNTRACKEDFILES=true
|
||||||
|
export GIT_PS1_SHOWSTASHSTATE=true
|
||||||
|
|
||||||
|
export PROMPT_DIRTRIM=3
|
||||||
|
|
||||||
|
function prompt_command() {
|
||||||
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
|
PS1="[\t]${yellow}[${red}\u@\h ${green}\w${yellow}]${red}$(__git_ps1 "(%s)")${normal}\\$ "
|
||||||
|
else
|
||||||
|
PS1="[\t]${yellow}[${cyan}\u@\h ${green}\w${yellow}]${red}$(__git_ps1 "(%s)")${normal}\\$ "
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
PROMPT_COMMAND=prompt_command;
|
||||||
Reference in New Issue
Block a user