I just put the gstate file inside my $PATH. I personally have a folder ~/.local/bin where this stuff lives.
gstate
$PATH
~/.local/bin
So...
alias gstate='bash ~/.local/bin/gstate.sh'
?
Well, if ~/.local/bin/ is in your $PATH (if you're on Windows I'm not sure what this would look like), then you can just type "gstate.sh", or just remove the extension and type "gstate". There's no need for the alias in this case.
~/.local/bin/
Ooo gotcha.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I just put the
gstatefile inside my$PATH. I personally have a folder~/.local/binwhere this stuff lives.So...
alias gstate='bash ~/.local/bin/gstate.sh'
?
Well, if
~/.local/bin/is in your$PATH(if you're on Windows I'm not sure what this would look like), then you can just type "gstate.sh", or just remove the extension and type "gstate". There's no need for the alias in this case.Ooo gotcha.