From 418bd1ea958bd851b802b140a3a62a4a19fad703 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 24 Dec 2025 19:10:46 +0100 Subject: feat: add ipw function to get default wifi information in fish shell --- functions/ipw.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 functions/ipw.fish diff --git a/functions/ipw.fish b/functions/ipw.fish new file mode 100644 index 0000000..3885717 --- /dev/null +++ b/functions/ipw.fish @@ -0,0 +1,5 @@ +function ipw --description "get information about the current default wifi" + set -l defaultWifi (/usr/bin/ip r | /usr/bin/grep --color=none default | tr ' ' '\n' | /usr/bin/grep dev -A1 --color=none | tail -n 1) + iw $defaultWifi link + printf "iw $defaultWifi link" +end -- cgit v1.3-2-g11bf