-
-
Notifications
You must be signed in to change notification settings - Fork 1
Create bash alias to run YAPI #36
Comments
Instead of creating an alias on bash profile, we can create a softlink in the usr/local/bin directory and name it yapi. Something like this:
with this you can call yapi even if you use zsh or a launcher. |
I did not know about softlinking. This would be easier and I am going to change that to run. Does this need to run on every boot or terminal startup, similar to how alias is, or does it persist across boots? |
I have tried this, however there is no change as python can't start from the softlink or alias. |
I think this is fine. If you need, you can get current path with os and append the relative path. This could help running, but your solution should work. The only question I have is if subprocess is in a new terminal and would need to cd into the correct directory. |
If yapi.sh have this line: |
Yes this is not the right method to handle this problem, but for now this is the easiest way. I will open a new issue for this new problem: "set up absolute path" |
Create aliases to run yapi instead of starting sh and running yapi.sh. Alias should be yapi. An example of the alias in use would be "yapi install test".
The text was updated successfully, but these errors were encountered: