Re:Using GNU Stow to manage your dotfiles
by anu_gupta on Tuesday October 21, 2014 @02:05PM
(#8488765)
Not sure if this would work with Stow, but in my .bashrc I just do this:
this gives me machine specific configs.
[ Parent
| on HN ]
Re:Using GNU Stow to manage your dotfiles
by jackalope on Tuesday October 21, 2014 @02:14PM
(#8488828)
You can do something similar to target *nix platforms like Darwin|FreeBSD|Linux|NetBSD|OpenBSD with:
if [ -f ~/config/bashrc_$(uname -s) ]; then
source ~/config/bashrc_$(uname -s)
fiGreat idea!
It wouldn't work for me though as I tend to call all my machines 'fuckup' (I know...) ;)
Re:Using GNU Stow to manage your dotfiles
by RexRollman on Tuesday October 21, 2014 @08:53PM
(#8490993)
In that case, you could have it read or check the existence of something else, like a file in /etc.