damn-mac has been restored

This commit is contained in:
Sameer Rahmani 2020-03-02 09:21:07 +00:00
parent eb7af85ec7
commit f838dfb1ab
1 changed files with 7 additions and 6 deletions

View File

@ -5,11 +5,10 @@
#
# Created on: Apr 10, 2012
nfunction my_git_prompt_info() {
function my_git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
#echo "$ZSH_THEME_GIT_PROMPT_PREFIX %F{007}$(parse_git_dirty)%F{005}${ref#refs/heads/} %F{007}$ZSH_THEME_GIT_PROMPT_SUFFIX"
#echo "$(git_super_status)"
echo "$ZSH_THEME_GIT_PROMPT_PREFIX %F{007}$(parse_git_dirty)%F{005}${ref#refs/heads/} %F{007}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
function get_pwd() {
@ -41,14 +40,16 @@ function spaces() {
function user_prompt () {
if [ $UID != 0 ]; then
echo "%F{007}%F{002}> "
echo "%F{007}$USER%F{002}> "
else
echo "%F{001}# "
echo "%F{001}$USER# "
fi
}
PROMPT='%F{005}%~%F{008} $(git_super_status)$(user_prompt)%f'
PROMPT='
%F{005}%~%F{008}$(spaces) $(my_git_prompt_info)
$(user_prompt)%f'
# git settings
ZSH_THEME_GIT_PROMPT_PREFIX="%F{002}["