bash:aliases:os_specific_aliases
This is an old revision of the document!
BASH - Aliases - OS specific aliases
# Get os name via uname. _myos="$(uname)" # Add alias using the OS. case $_myos in Linux) alias foo='/path/to/linux/bin/foo';; FreeBSD|OpenBSD) alias foo='/path/to/bsd/bin/foo' ;; SunOS) alias foo='/path/to/sunos/bin/foo' ;; *) ;; esac
bash/aliases/os_specific_aliases.1588711143.txt.gz · Last modified: 2020/07/15 09:30 (external edit)