added current time
This commit is contained in:
parent
aed3f2f54e
commit
e2c00dae07
8
.zshrc
8
.zshrc
@ -164,6 +164,13 @@ prompt_git() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# show current time
|
||||||
|
prompt_time() {
|
||||||
|
local current_date
|
||||||
|
current_date=`date +%R`
|
||||||
|
prompt_segment green $PRIMARY_FG " ${current_date} "
|
||||||
|
}
|
||||||
|
|
||||||
# Dir: current working directory
|
# Dir: current working directory
|
||||||
prompt_dir() {
|
prompt_dir() {
|
||||||
prompt_segment blue $PRIMARY_FG ' %~ '
|
prompt_segment blue $PRIMARY_FG ' %~ '
|
||||||
@ -192,6 +199,7 @@ prompt_status() {
|
|||||||
## Main prompt
|
## Main prompt
|
||||||
prompt_main() {
|
prompt_main() {
|
||||||
CURRENT_BG='NONE'
|
CURRENT_BG='NONE'
|
||||||
|
prompt_time
|
||||||
prompt_status
|
prompt_status
|
||||||
prompt_root
|
prompt_root
|
||||||
prompt_user
|
prompt_user
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user