views:

25

answers:

1

Three flavors of UNIX: Linux, Solaris, IRIX... one NFS mounted home directory.

I'd like to have a (slightly) different .profile behavior based on the OS that I'm connecting to. I can hack something together, but I'd like to not re-invent the wheel if it's not necessary.

Is there a best practice for splitting out .profiles sections based on operating system?

+4  A: 
#!/bin/sh

case `uname` in
Linux*)
...
esac
Karmastan