From 0b95e80581a6c97193e202e9a0cc898c3eb601de Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Fri, 26 Aug 2022 22:12:32 -0700 Subject: [PATCH] :memo: Updated aliases and zshrc for networkmanager use --- aliases | 2 +- zshrc.txt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/aliases b/aliases index 1bb8c5b4..07020ee9 100644 --- a/aliases +++ b/aliases @@ -119,7 +119,7 @@ alias {wi,ssid}="doas iw wlan0 scan | grep SSID" alias wifi-list="nmcli device wifi list" # alias wifi-scan="connmanctl scan wifi" # alias wifi-connect="connmanctl connect wifi_34cff6c9b922_44495a5a_managed_psk" -alias wifi-connect="nmcli device wifi connect SSID password" +alias wifi-connect='nmcli device wifi connect "${SSID}" password "${PASSWD}"' # alias wifi-disconnect="connmanctl disconnect wifi_34cff6c9b922_44495a5a_managed_psk" alias wifi-disconnect="nmcli device disconnect wlan0" alias wifi-up="doas ifconfig wlan0 up" diff --git a/zshrc.txt b/zshrc.txt index 5d53c293..2ef6ef1b 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -142,12 +142,14 @@ fi bindkey -v # alias home="xclear && cd /home/brian && clear && history -p && hash -r && /usr/bin/rm $HOME/.zsh_history && touch $HOME/.zsh_history" -alias home="cd $HOME && history -p && zhome.sh && unset sdir" +alias home="cd && history -p && zhome.sh && unset sdir" # Various source files (do not place at end of zshrc/bashrc) source ~/.aliases # github personal access token source ~/.gh_pat +#SSID and passwd +source ~/.ssid_passwd # Plugins (that need to be at the end of the zshrc script) source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh