3 ms·
Check $uname and other variables with if statements to activate aliases depending on OS, username etc. I also keep a barebones “core” of aliases/functions that
by __blockcipher__ 7y ago
Check $uname and other variables with if statements to activate aliases depending on OS, username etc.
I also keep a barebones “core” of aliases/functions that i use everywhere (e.g. on linux servers as well as my current macos laptop). And then a file that contains the non-core stuff that only get used on my dev environment (MacBook) but not on servers.
—
It’d help if you provided examples of what differences you have between machines though. Most should be pretty simple e.g. slightly different dir structure, different package managers etc.