DEV Community

Discussion on: Sam's dotfiles highlights

Collapse
syntaxseed profile image
SyntaxSeed (Sherri W)

Do you mind sharing how you alias gstate since it's a script not a function...?

Collapse
samthor profile image
Sam Thorogood Author

I just put the gstate file inside my $PATH. I personally have a folder ~/.local/bin where this stuff lives.

Collapse
syntaxseed profile image
SyntaxSeed (Sherri W)

So...

alias gstate='bash ~/.local/bin/gstate.sh'

?

Thread Thread
samthor profile image
Sam Thorogood Author

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.

Thread Thread
syntaxseed profile image
SyntaxSeed (Sherri W)

Ooo gotcha.