diff options
author | Hong <hong@topbug.net> | 2016-10-10 13:24:30 -0700 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-10-10 22:24:30 +0200 |
commit | a56eac7a71a774a4d97bb9456f36b8eb495329d5 (patch) | |
tree | ef3afc060359a3d3aaf9a5ef6257503989905a0b /plugins/gitfast | |
parent | 98cd3973d23dfb83aa60f5d11bbb31e2dc714fad (diff) | |
download | zsh-a56eac7a71a774a4d97bb9456f36b8eb495329d5.tar.gz zsh-a56eac7a71a774a4d97bb9456f36b8eb495329d5.tar.bz2 zsh-a56eac7a71a774a4d97bb9456f36b8eb495329d5.zip |
Use OSTYPE instead of uname whenever possible for better speed. (#5496)
Diffstat (limited to 'plugins/gitfast')
-rw-r--r-- | plugins/gitfast/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gitfast/git-completion.bash b/plugins/gitfast/git-completion.bash index e3918c87e..8ce6b5c5f 100644 --- a/plugins/gitfast/git-completion.bash +++ b/plugins/gitfast/git-completion.bash @@ -2771,6 +2771,6 @@ __git_complete gitk __gitk_main # when the user has tab-completed the executable name and consequently # included the '.exe' suffix. # -if [ Cygwin = "$(uname -o 2>/dev/null)" ]; then +if [[ "$OSTYPE" = cygwin* ]]; then __git_complete git.exe __git_main fi |