commit 1c0233268857b83b396045062ef9814cd8d98ba4 parent abfadd9cfa26ab2e9109b7fe5a59c35aa2ab320b Author: Antoine Amarilli <a3nm@a3nm.net> Date: Sat, 27 Dec 2014 22:57:08 +0100 ps1 Diffstat:
zsh/ps1 | | | 2 | ++ |
zsh/zshrc | | | 15 | ++++++++++++++- |
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/zsh/ps1 b/zsh/ps1 @@ -0,0 +1 @@ +/home/a3nm/config/private/zsh/ps1+ \ No newline at end of file diff --git a/zsh/zshrc b/zsh/zshrc @@ -14,9 +14,22 @@ compinit # export PROMPT="%n@%m:%~$ " #PS1=$'%{\e[1;32m%}%n@h%{\e[0m%}:%B%~$%b ' +RED=$'%{\e[31m%}' +GREEN=$'%{\e[32m%}' +YELLOW=$'%{\e[33m%}' +BLUE=$'%{\e[34m%}' +MAGENTA=$'%{\e[35m%}' +CYAN=$'%{\e[36m%}' + +COLOR1="$GREEN" +COLOR2="$RED" + +. ~/.zsh/ps1 + resetps1() { -PS1=$'%{\e[32m%}%m%{\e[0;1m%}:%{\e[31m%}%B%~%{\e[0;1m%}$%b ' +PS1=$COLOR1$'%m%{\e[0;1m%}:'$COLOR2$'%B%~%{\e[0;1m%}$%b ' } + resetps1