From ec01fb14b45369edadab11e88c5ce32933148c94 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 3 Apr 2001 21:27:58 +0000 Subject: 13899: OSTYPE checking --- Completion/Unix/Command/_apm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Completion/Unix/Command/_apm') diff --git a/Completion/Unix/Command/_apm b/Completion/Unix/Command/_apm index aedc814e0..f4fcaa3ef 100644 --- a/Completion/Unix/Command/_apm +++ b/Completion/Unix/Command/_apm @@ -1,9 +1,6 @@ #compdef apm -# this needs intelligence -local kludge=linux - -if [[ $kludge == "linux" ]] +if [[ $OSTYPE == linux* ]] then _arguments -C -s \ @@ -22,7 +19,7 @@ _arguments -C -s \ '(--ignore)-i[tell the system to ignore system-generated APM message]' \ '(-i)--ignore[tell the system to ignore system-generated APM message]' -elif [[ $kludge == "freebsd4.1" ]] +elif [[ $OSTYPE == freebsd* ]] then _arguments -C \ @@ -38,7 +35,7 @@ _arguments -C \ '-Z[transition system into standby mode]' \ '-z[suspend the system]' -elif [[ $kludge == "openbsd2.7" ]] +elif [[ $OSTYPE == openbsd* ]] then _arguments -C \ -- cgit 1.4.1