Skip to content

Commit

Permalink
check for cygwin via OSTYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed May 26, 2020
1 parent be42ea1 commit 4548963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitstatus.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ function gitstatus_start"${1:-}"() {

typeset -gi _GITSTATUS_LOCK_FD_$name=lock_fd

if [[ -n $USERPROFILE && -d /cygdrive && -d /proc/self/fd ]]; then
if [[ $OSTYPE == cygwin* && -d /proc/self/fd ]]; then
# Work around bugs in Cygwin 32-bit.
#
# This hangs:
Expand Down

0 comments on commit 4548963

Please sign in to comment.