summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2020-07-25 21:01:02 -0600
committerTuowen Zhao <ztuowen@gmail.com>2020-07-25 21:01:02 -0600
commit1edd2c43b12f9f2c2ef04cfa0428db0f7fc0aa7c (patch)
treee6aeb9029206948167619f4dc1c2ec42c4040ab4 /themes
parent59344b5c59b7190ad3b14a2e8e02db8b5559141b (diff)
parent95218372402afc9aeafc89c0984310387ce79599 (diff)
downloadzsh-1edd2c43b12f9f2c2ef04cfa0428db0f7fc0aa7c.tar.gz
zsh-1edd2c43b12f9f2c2ef04cfa0428db0f7fc0aa7c.tar.bz2
zsh-1edd2c43b12f9f2c2ef04cfa0428db0f7fc0aa7c.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'themes')
-rw-r--r--themes/mlh.zsh-theme59
1 files changed, 59 insertions, 0 deletions
diff --git a/themes/mlh.zsh-theme b/themes/mlh.zsh-theme
new file mode 100644
index 000000000..a21a546bc
--- /dev/null
+++ b/themes/mlh.zsh-theme
@@ -0,0 +1,59 @@
+# The Official Theme of
+## ## ## ## ##
+### ### ## ## ##
+#### #### ## ## ##
+## ### ## ## #########
+## ## ## ## ##
+## ## ## ## ##
+## ## ######## ## ##
+
+# # # # # # # # # # # # # # # # # #
+# # # Feel free to customize! # # #
+# # # # # # # # # # # # # # # # # #
+
+# To easily discover colors and their codes, type `spectrum_ls` in the terminal
+
+AT_SYMBOL=" @ "
+IN_SYMBOL=" in "
+ON_SYMBOL=" on "
+SYMBOL="$"
+
+USER_COLOR="%F{001}"
+DEVICE_COLOR="%F{033}"
+DIR_COLOR="%F{220}"
+BRANCH_COLOR="%F{001}"
+TIME_COLOR="%F{033}"
+
+username() {
+ echo "$USER_COLOR%n%f"
+}
+
+# Returns device name
+device() {
+ echo "$DEVICE_COLOR%m%f"
+}
+
+# The current directory
+directory() {
+ echo "$DIR_COLOR%1~%f"
+}
+
+# Current time with milliseconds
+current_time() {
+ echo "$TIME_COLOR%*%f"
+}
+
+# Return status of the last command
+return_status() {
+ 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="%f"
+ZSH_THEME_GIT_PROMPT_DIRTY=""
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+# %B and %b make the text bold
+PROMPT='%b$(username)$AT_SYMBOL$(device)$IN_SYMBOL$(directory)$(git_prompt_info)%b $SYMBOL '
+RPROMPT="$(return_status) $(current_time)"