bash: set CURRENT_OS
This commit is contained in:
6
bashrc
6
bashrc
@@ -5,6 +5,12 @@
|
|||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
|
if [ "$(uname -s)" == "Darwin" ] ; then
|
||||||
|
export CURRENT_OS=macos
|
||||||
|
else
|
||||||
|
export CURRENT_OS=linux
|
||||||
|
fi
|
||||||
|
|
||||||
# Add an entry to PATH, iff it's not already there.
|
# Add an entry to PATH, iff it's not already there.
|
||||||
addpath() {
|
addpath() {
|
||||||
wanted_path=$1
|
wanted_path=$1
|
||||||
|
|||||||
Reference in New Issue
Block a user