importpw / import

`import` is a simple and fast module system for Bash and other Unix shells
https://import.sh
MIT License
338 stars 10 forks source link

Not working on macos #48

Closed jerrygreen closed 2 years ago

jerrygreen commented 3 years ago
jerrygreen@jerrygreen ~ % curl -sfLS https://import.pw > /usr/local/bin/import
chmod +x /usr/local/bin/import
jerrygreen@jerrygreen ~ % import "https://git.io/fAWiz"                    
/usr/local/bin/import: line 214: https://git.io/fAWiz: No such file or directory

Preview

Screenshot 2020-11-08 at 08 03 49
TooTallNate commented 2 years ago

Hey @jerrygreen. So you're missing the part where you first have to source the import script into your shell.

curl -sfLS https://import.sh > /usr/local/bin/import
chmod +x /usr/local/bin/import
. "$(command -v import)"
import "https://git.io/fAWiz"
jerrygreen commented 2 years ago

@TooTallNate i have used official installation instructions, «Bootstrapping the import function»:

https://github.com/importpw/import/blob/master/docs/install.md#-bootstrapping-the-import-function