|
|
@ -60,6 +60,8 @@
|
|
|
|
autoload -Uz add-zsh-hook
|
|
|
|
autoload -Uz add-zsh-hook
|
|
|
|
zmodload zsh/datetime zsh/system
|
|
|
|
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.
|
|
|
|
# Retrives status of a git repo from a directory under its working tree.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
## Usage: gitstatus_query [OPTION]... NAME
|
|
|
|
## Usage: gitstatus_query [OPTION]... NAME
|
|
|
@ -338,8 +340,7 @@ function gitstatus_start() {
|
|
|
|
os="$(uname -s)" && [[ -n $os ]]
|
|
|
|
os="$(uname -s)" && [[ -n $os ]]
|
|
|
|
[[ $os != Linux || "$(uname -o)" != Android ]] || os=Android
|
|
|
|
[[ $os != Linux || "$(uname -o)" != Android ]] || os=Android
|
|
|
|
local arch && arch="$(uname -m)" && [[ -n $arch ]]
|
|
|
|
local arch && arch="$(uname -m)" && [[ -n $arch ]]
|
|
|
|
local dir && dir=${${(%):-%x}:A:h}
|
|
|
|
daemon=$_gitstatus_plugin_dir/bin/gitstatusd-${os:l}-${arch:l}
|
|
|
|
daemon=$dir/bin/gitstatusd-${os:l}-${arch:l}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[[ -x $daemon ]]
|
|
|
|
[[ -x $daemon ]]
|
|
|
|
|
|
|
|
|
|
|
|