mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Merge 54e867e392 into 4cb730773b
This commit is contained in:
commit
d5f67a9b6f
1 changed files with 12 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ CURRENT_BG='NONE'
|
|||
local LC_ALL="" LC_CTYPE="en_US.UTF-8"
|
||||
# NOTE: This segment separator character is correct. In 2012, Powerline changed
|
||||
# the code points they use for their special characters. This is the new code point.
|
||||
# If this is not working for you, you probably have an old version of the
|
||||
# If this is not working for you, you probably have an old version of the
|
||||
# Powerline-patched fonts installed. Download and install the new version.
|
||||
# Do not submit PRs to change this unless you have reviewed the Powerline code point
|
||||
# history and have new information.
|
||||
|
|
@ -119,7 +119,7 @@ prompt_git() {
|
|||
zstyle ':vcs_info:*' get-revision true
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
zstyle ':vcs_info:*' stagedstr '✚'
|
||||
zstyle ':vcs_info:*' unstagedstr '●'
|
||||
zstyle ':vcs_info:git:*' unstagedstr '●'
|
||||
zstyle ':vcs_info:*' formats ' %u%c'
|
||||
zstyle ':vcs_info:*' actionformats ' %u%c'
|
||||
vcs_info
|
||||
|
|
@ -212,6 +212,15 @@ prompt_status() {
|
|||
[[ -n "$symbols" ]] && prompt_segment black default "$symbols"
|
||||
}
|
||||
|
||||
# Node version
|
||||
prompt_nvm() {
|
||||
local nvm_node=''
|
||||
if which node &> /dev/null; then
|
||||
nvm_node="$(node -v)"
|
||||
fi
|
||||
prompt_segment green black "$nvm_node"
|
||||
}
|
||||
|
||||
## Main prompt
|
||||
build_prompt() {
|
||||
RETVAL=$?
|
||||
|
|
@ -219,6 +228,7 @@ build_prompt() {
|
|||
prompt_virtualenv
|
||||
prompt_context
|
||||
prompt_dir
|
||||
prompt_nvm
|
||||
prompt_git
|
||||
prompt_bzr
|
||||
prompt_hg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue