Skip to content

Instantly share code, notes, and snippets.

@JustinChristensen
Last active August 29, 2015 14:02
Show Gist options
  • Save JustinChristensen/7246be4c597997404a77 to your computer and use it in GitHub Desktop.
Save JustinChristensen/7246be4c597997404a77 to your computer and use it in GitHub Desktop.
{
"shell_cmd": "$0 --version"
}
// the output from this is an error but it shows me what shell my builder is trying to use:
// /Users/wroathe/.bash_profile: line 131: shopt: globstar: invalid shell option name
// /bin/bash: --version: command not found
// [Finished in 0.3s with exit code 127]
// [shell_cmd: --version]
// [dir: /Users/wroathe/Library/Application Support/Sublime Text 3/Packages/User]
// [path: /usr/local/bin]
// That first line of the output about the invalid shell option is caused by Sublime trying to use the system
// default bash shell which is a full major version behind the current bash shell (version 3, current is version 4) and
// globstar is not available in the old version, hence the error.
// I'm trying to find a way to tell Sublime to prefer the shell located at /usr/local/bin/bash, which is the current
// version I've installed with Homebrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment