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

Add path support for the fish shell #59

Merged
merged 1 commit into from
Jun 9, 2018
Merged

Add path support for the fish shell #59

merged 1 commit into from
Jun 9, 2018

Conversation

dnicolson
Copy link
Contributor

This pull request fixes an issue with the fish shell when determining the system path, the following error would appear in the console:

Traceback (most recent call last):
  File "/Users/dave/Library/Application Support/Sublime Text 3/Packages/JavaScript Enhancements/main.py", line 140, in fixPath
    currSysPath = getSysPath()
  File "/Users/dave/Library/Application Support/Sublime Text 3/Packages/JavaScript Enhancements/main.py", line 129, in getSysPath
    sysPath = sysPath.splitlines()[-1]
IndexError: list index out of range

Prepending the command with the env command fixes the issue, it has been tested with the fish, zsh and bash shells.

@pichillilorenzo
Copy link
Owner

Ok! Thanks!

@pichillilorenzo pichillilorenzo merged commit b99cf5d into pichillilorenzo:master Jun 9, 2018
@dnicolson dnicolson mentioned this pull request Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants