mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-10-07 03:56:20 +00:00
Use OSTYPE instead of uname whenever possible for better speed. (#5496)
This commit is contained in:
1 parent
98cd3973d2
commit
a56eac7a71
6 files changed
+9
-9
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user