📝 Updated aliases and zshrc for networkmanager use
This commit is contained in:
parent
b1d5d4e2f7
commit
0b95e80581
2 changed files with 4 additions and 2 deletions
2
aliases
2
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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue