From: Nicolas Boisselier Date: Mon, 6 Feb 2017 21:36:08 +0000 (+0000) Subject: etc/profile.d/mac.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=8a8d44ef960d91690d2c5cdd68205d99ea33ab96;p=nb.git etc/profile.d/mac.sh --- diff --git a/etc/profile.d/mac.sh b/etc/profile.d/mac.sh index c72268fe..37754fe5 100644 --- a/etc/profile.d/mac.sh +++ b/etc/profile.d/mac.sh @@ -33,7 +33,6 @@ seq() { jot "$1" fi } -fi alias mac_iptables_reload="pfctl -d; pfctl -f /etc/pf.conf -e" alias mac_top_proc="echo 'TOP PROCESSES:'; ps -Aro'%cpu, ucomm, user' | grep root | grep -v ' 0.0 '" @@ -241,13 +240,6 @@ mac_port_reinstall() { rm /tmp/myports.txt } -is_darwin() { - case "$OSTYPE" - in darwin*) return 0 ;; - *) return 1 ;; - esac -} - getent() { which getent && (eval "$(which getent) $@"; return) [ "$1" != 'passwd' ] && echo "Support only passwd untill now" && return 1