only operate on macos.

pull/1635/head
cornfeedhobo 2020-08-04 02:46:22 -05:00
parent 2374f389b4
commit 4b9d771554
No known key found for this signature in database
GPG Key ID: 724357093F994B26
1 changed files with 4 additions and 1 deletions

View File

@ -1,10 +1,13 @@
#!/usr/bin/env bash
# Only operate on MacOS since there are no linux paths
[ "$(uname -s)" == "Darwin" ] || return
# Make sure git is installed
_command_exists git || return
# Don't handle completion if it's already managed
complete -p git &>/dev/null && return
! complete -p git &>/dev/null || return
_git_bash_completion_paths=(
# MacOS non-system locations