various updates
[distro-setup] / brc
diff --git a/brc b/brc
index c3747cf97e5a8b6f4e3de521db69f401c10b6281..138fd896b26df6b2ae9361ba75709abd9855fe93 100644 (file)
--- a/brc
+++ b/brc
@@ -468,7 +468,7 @@ ccomp cd c
 
 bwm() {
   s bwm-ng -T avg -d
-  }
+}
 
 b() {
   local topb
@@ -1407,7 +1407,15 @@ nags() {
 }
 
 nmt() {
-  s nmtui-connect "$@"
+  # cant use s because sudo -i doesnt work for passwordless sudo command
+  case $EUID in
+    0)
+      sudo nmtui-connect "$@"
+      ;;
+    *)
+      nmtui-connect "$@"
+      ;;
+  esac
 }
 
 nopanic() {
@@ -1732,7 +1740,7 @@ sk() {
 
   local quotes others
   quotes=2048,2068,2086,2206
-  others=2029,2033,2164
+  others=2029,2033,2054,2164
   shellcheck -W 999 -x -e $quotes,$others "$@" || return $?
 }