3 ms·
Not sure if this would work with Stow, but in my .bashrc I just do this: if [ -f ~/config/bashrc_$(hostname -s) ]; then source ~/config/bashrc_$(hos
by anu_gupta 12y ago
Not sure if this would work with Stow, but in my .bashrc I just do this:
if [ -f ~/config/bashrc_$(hostname -s) ]; then
source ~/config/bashrc_$(hostname -s)
fi
this gives me machine specific configs.
- jackalope 12y agoYou 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) fi
- LukaD 12y agoGreat idea! It wouldn't work for me though as I tend to call all my machines 'fuckup' (I know...) ;)
- RexRollman 12y agoIn that case, you could have it read or check the existence of something else, like a file in /etc.