Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've had my dotfiles in git for 7+ years. Work on Windows, Linux and macOS. Conditionalization in BASH is dead simple.

EDIT: 12+ years at work.



Yeah, it seems like keeping the cond inside the dotfiles, rather than in a dotfiles manager is the way to go.


Can you share some of your setup there to exemplify? Thanks.


I use $(uname -s) (Cygwin required on Windows) and dispatch on that. There's really nothing more than that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: