Last active
May 25, 2020 00:50
-
-
Save lakshmankumar12/2cb328d1025a93d444426eacd320d961 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/functions/vcs.zsh b/functions/vcs.zsh | |
index 04a07e5..6b8d7fc 100755 | |
--- a/functions/vcs.zsh | |
+++ b/functions/vcs.zsh | |
@@ -7,6 +7,9 @@ | |
################################################################ | |
set_default POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY false | |
+function +vi-git-replacement() { | |
+ hook_com[misc]+=" $(git_super_status)" | |
+} | |
function +vi-git-untracked() { | |
[[ -z "${vcs_comm[gitdir]}" || "${vcs_comm[gitdir]}" == "." ]] && return | |
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme | |
index 4939cb3..0b487f0 100755 | |
--- a/powerlevel9k.zsh-theme | |
+++ b/powerlevel9k.zsh-theme | |
@@ -630,6 +630,11 @@ prompt_context() { | |
if [[ "$POWERLEVEL9K_ALWAYS_SHOW_CONTEXT" == true ]] || [[ "$(whoami)" != "$DEFAULT_USER" ]] || [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then | |
content="${POWERLEVEL9K_CONTEXT_TEMPLATE}" | |
+ if [[ "DevBox" == "$(hostname -s)" ]] ; then | |
+ content="${POWERLEVEL9K_CONTEXT_TEMPLATE} " | |
+ else | |
+ content="${POWERLEVEL9K_CONTEXT_TEMPLATE}" | |
+ fi | |
elif [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]]; then | |
content="$(whoami)" | |
else | |
@@ -1554,10 +1559,10 @@ powerlevel9k_vcs_init() { | |
zstyle ':vcs_info:*' actionformats "%b %F{${POWERLEVEL9K_VCS_ACTIONFORMAT_FOREGROUND}}| %a%f" | |
- zstyle ':vcs_info:*' stagedstr " $(print_icon 'VCS_STAGED_ICON')" | |
- zstyle ':vcs_info:*' unstagedstr " $(print_icon 'VCS_UNSTAGED_ICON')" | |
+ zstyle ':vcs_info:*' stagedstr " " | |
+ zstyle ':vcs_info:*' unstagedstr " " | |
- defined POWERLEVEL9K_VCS_GIT_HOOKS || POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-untracked git-aheadbehind git-stash git-remotebranch git-tagname) | |
+ defined POWERLEVEL9K_VCS_GIT_HOOKS || POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-replacement) | |
zstyle ':vcs_info:git*+set-message:*' hooks $POWERLEVEL9K_VCS_GIT_HOOKS | |
defined POWERLEVEL9K_VCS_HG_HOOKS || POWERLEVEL9K_VCS_HG_HOOKS=(vcs-detect-changes) | |
zstyle ':vcs_info:hg*+set-message:*' hooks $POWERLEVEL9K_VCS_HG_HOOKS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment