Compare commits
1 Commits
max-master
...
mac
| Author | SHA1 | Date | |
|---|---|---|---|
| 505f6f67db |
@@ -42,7 +42,7 @@ git_root() {
|
|||||||
prompt_function() {
|
prompt_function() {
|
||||||
prompt=""
|
prompt=""
|
||||||
|
|
||||||
HOST_COLOR_ID=$(( "16#$(hostname | md5sum | cut -f1 -d' ')" % 7 + 1)) # [1, 7]
|
HOST_COLOR_ID=$(( 16#$(hostname | md5 ) % 7 + 1 )) # [1, 7]
|
||||||
HOST_COLOR="${RST}\001$(tput setaf $HOST_COLOR_ID)\002"
|
HOST_COLOR="${RST}\001$(tput setaf $HOST_COLOR_ID)\002"
|
||||||
GIT_COLOR="${RST}${FG_CYN}"
|
GIT_COLOR="${RST}${FG_CYN}"
|
||||||
DIR_COLOR="${RST}${FG_YEL}"
|
DIR_COLOR="${RST}${FG_YEL}"
|
||||||
|
|||||||
Reference in New Issue
Block a user