Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug and Feature Request Templates + MLH Theme + Readme #9068

Merged
merged 13 commits into from
Jul 5, 2020
Prev Previous commit
Use %f to remove foreground color
Fixes weirdness where the foreground color is temporary disabled but remains in the prompt line.
Also used 4-space indentation instead of the 3 spaces there were before.
  • Loading branch information
mcornella authored Jul 3, 2020
commit 69b4b7233944f3a7eaabe14c2fd2a32d635c3e3e
12 changes: 6 additions & 6 deletions themes/mlh.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,32 @@ BRANCH_COLOR="%F{001}"
TIME_COLOR="%F{033}"

username() {
echo "$USER_COLOR%n%{$reset_color%}"
echo "$USER_COLOR%n%f"
}

# Returns device name
device() {
echo "$DEVICE_COLOR%m%{$reset_color%}"
echo "$DEVICE_COLOR%m%f"
}

# The current directory
directory() {
echo "$DIR_COLOR%1~%{$reset_color%}"
echo "$DIR_COLOR%1~%f"
}

# Current time with milliseconds
current_time() {
echo "$TIME_COLOR%*%{$reset_color%}"
echo "$TIME_COLOR%*%f"
}

# Return status of the last command
return_status() {
echo "%(?..%F{001}out %?)%{$reset_color%}"
echo "%(?..%F{001}out %?)%f"
}

# Set the git_prompt_info text
ZSH_THEME_GIT_PROMPT_PREFIX="${ON_SYMBOL}${BRANCH_COLOR}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%f"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""

Expand Down