bash: set CURRENT_OS

This commit is contained in:
2020-06-02 11:26:28 +01:00
parent 30a10fd2db
commit 754ae4e8cd

6
bashrc
View File

@@ -5,6 +5,12 @@
# If not running interactively, don't do anything
[ -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.
addpath() {
wanted_path=$1