Skip to content
Browse files

[Zsh] Add nm-toggle.

Signed-off-by: Michael Markert <markert.michael@googlemail.com>
  • Loading branch information...
1 parent f2f9be3 commit 6f538f066425da540b9ea22a1c0002901ad9a786 @cofi committed Jun 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 zsh/functions/common
View
4 zsh/functions/common
@@ -99,3 +99,7 @@ encrypt() {
decrypt() {
gpg -o ${1%.*} -d $1
}
+
+nm-toggle() {
+ (nmcli nm enable | grep 'enabled' > /dev/null) && nmcli nm enable false || nmcli nm enable true
+}

0 comments on commit 6f538f0

Please sign in to comment.
Something went wrong with that request. Please try again.