mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-23 23:51:58 +00:00
pull upstream changes from gitstatus
This commit is contained in:
parent
2fd59f5acd
commit
1888d2cee5
1 changed files with 3 additions and 2 deletions
|
@ -60,6 +60,8 @@
|
|||
autoload -Uz add-zsh-hook
|
||||
zmodload zsh/datetime zsh/system
|
||||
|
||||
typeset -g _gitstatus_plugin_dir=${${(%):-%x}:A:h}
|
||||
|
||||
# Retrives status of a git repo from a directory under its working tree.
|
||||
#
|
||||
## Usage: gitstatus_query [OPTION]... NAME
|
||||
|
@ -338,8 +340,7 @@ function gitstatus_start() {
|
|||
os="$(uname -s)" && [[ -n $os ]]
|
||||
[[ $os != Linux || "$(uname -o)" != Android ]] || os=Android
|
||||
local arch && arch="$(uname -m)" && [[ -n $arch ]]
|
||||
local dir && dir=${${(%):-%x}:A:h}
|
||||
daemon=$dir/bin/gitstatusd-${os:l}-${arch:l}
|
||||
daemon=$_gitstatus_plugin_dir/bin/gitstatusd-${os:l}-${arch:l}
|
||||
}
|
||||
[[ -x $daemon ]]
|
||||
|
||||
|
|
Loading…
Reference in a new issue