Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemm.ee

6 replies

programming.dev
  1. You need a license
  2. usage should just be help (avoid extra step)
  3. connect does not exist (see add and cmd list)
  4. You can git clone <REPO> <DEST FOLDER>, no need to cd
  5. maybeCreateDir is not used each time, there are some mkdir
  6. "changes" is not a helpfull commit message. Accept an optional argument string and {MESSAGE:=change}
  7. Accept a different repo path
  8. set -euxo pipefail at the start of the script if you want to exit at any error. Some sort of bash strict mode
  9. shellcheck does not like iterating over ls's output

I'm too lazy to open issues/PR for all that, and I still need to learn stow. Hopfully this might help me ? (I don't really need help with git that this sçript look to abstract too much for me.)

4
ad_on_isreply
lemm.ee

oh hey.. thx for the input... just did some refactoring... never realized there was also a git -C workdir <cmd> since I never use it.

3

yes ... I fixed that too, using -t and -d now.

1

Stow has been pretty amazing for my dotfiles repo. Being able to just stow adapt <folder> and git reset --hard to overwrite an existing config on a new machine is just so nice.

I'll be sure to check this out!

1

You reached the end

GitHub - ad-on-is/stowman: stowman.sh lets you easily manage your dotfiles using git and GNU stow. | Spyke