Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support capital 'Darwin' $OSTYPE #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if [[ $OSTYPE == "linux-gnu" ]]; then
cat $TMPFILE | xclip -selection clipboard

# OSX
elif [[ $OSTYPE == "darwin"* ]]; then
elif [[ $OSTYPE =~ [Dd]+arwin[.]* ]]; then
# if there is no path file, it must have been deleted or the installer failed
require_file_exists $AW_PATH/.path \
"Please reinstall vim-anywhere."
Expand Down
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if [[ $OSTYPE == "linux-gnu" ]]; then
require_installed xclip

# OSX specific checks
elif [[ $OSTYPE == "darwin"* ]]; then
elif [[ $OSTYPE =~ [Dd]+arwin[.]* ]]; then
require_installed mvim 'Run `brew install macvim`.'

# Unsupported OS
Expand Down Expand Up @@ -120,7 +120,7 @@ if [[ $OSTYPE == "linux-gnu" ]]; then
fi

# OSX install
elif [[ $OSTYPE == "darwin"* ]]; then
elif [[ $OSTYPE =~ [Dd]+arwin[.]* ]]; then
# store the absolute path to the mvim executable
which mvim > $AW_PATH/.path

Expand Down
2 changes: 1 addition & 1 deletion uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [[ $OSTYPE == "linux-gnu" ]]; then
fi

# OSX uninstall
elif [[ $OSTYPE == "darwin"* ]]; then
elif [[ $OSTYPE =~ [Dd]+arwin[.]* ]]; then
rm -rf $HOME/Library/Services/VimAnywhere.workflow
fi

Expand Down
2 changes: 1 addition & 1 deletion update
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pushd $AW_PATH
popd

# OSX only
if [[ $OSTYPE == "darwin"* ]]; then
if [[ $OSTYPE =~ [Dd]+arwin[.]* ]]; then
cp -R $AW_PATH/VimAnywhere.workflow $HOME/Library/Services
fi

Expand Down