DEV Community

Sam's dotfiles highlights

Sam Thorogood on June 06, 2019

Most developers end up creating some sort of dotfiles repo to contain configuration files for their *nix-like machines (macOS, Linux, etc). Rather ...
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

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

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.

Collapse
 
cookrdan profile image
Dan

Fantastic. Thank you! I like your gstate script output. :)