matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
960 stars 78 forks source link

Add support for multiple GOPATHs #158

Closed 0xd3e closed 5 years ago

0xd3e commented 5 years ago

This adds support for multiple entries in the GOPATH variable, which has the benefit that downloaded packages are placed in the path of the first entry of GOPATH while own packages can be managed in the second path.

Description

I replaced [ -n $GOPATH ] by [ (count $GOPATH) -gt 0 ] in functions/__sf_section_golang.fish.

Motivation and Context

Closes #157

Types of changes

How Has This Been Tested?

I ran npm test.

1..204
# tests 204
# pass  204

# ok

Checklist:

matchai commented 5 years ago

:tada: This PR is included in version 2.2.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

matchai commented 5 years ago

@all-contributors please add @danieltrautmann for code

allcontributors[bot] commented 5 years ago

@matchai

I've put up a pull request to add @danieltrautmann! :tada: