about summary refs log tree commit diff
path: root/configs/shared/zsh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-05-13T15·39+0100
committerWilliam Carroll <wpcarro@gmail.com>2019-05-13T15·39+0100
commit6fba42e30644c6872fa54812250d0150ece538d0 (patch)
tree8f65c867265f9b1dd8be070ded54d3e9bfd12901 /configs/shared/zsh
parentc41e9fe49c059ee0545f6f6867a50a33766fcb67 (diff)
Support hardware-based aliases
Hibernating, sleeping, WiFi configuration...
Diffstat (limited to 'configs/shared/zsh')
-rw-r--r--configs/shared/zsh/aliases.zsh12
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/shared/zsh/aliases.zsh b/configs/shared/zsh/aliases.zsh
index 9491969c005f..ad16f7c07e86 100644
--- a/configs/shared/zsh/aliases.zsh
+++ b/configs/shared/zsh/aliases.zsh
@@ -15,6 +15,7 @@
 #   chrome:     c
 #   elixir:     ex
 #   haskell:    hk
+#   wifi:       wf
 #
 # Supported qualifiers:
 #   hidden:      h
@@ -51,6 +52,17 @@ alias fdh='fd --hidden' # By default, rg skips hidden files
 alias define=sdcv # uses stardict to lookup a word
 alias intellij='nohup /opt/intellij-ce-stable/bin/idea.sh >/dev/null 2>&1 &'
 alias tpr='tput reset'
+alias nordvpn='sudo openvpn /etc/openvpn/ovpn_tcp/us3559.nordvpn.com.tcp.ovpn' # connects to the nordvpn servers in USA
+
+# device / power mgt
+alias off='shutdown now'
+alias suspend='systemctl suspend'
+alias hibernate='systemctl hibernate'
+
+# nmcli
+# NOTE: check out `tldr nmcli` for more information
+alias wfls='nmcli device wifi' # list available wifi network
+alias wfc='nmcli device wifi connect' # connect to a Wifi network
 
 # Gnome
 alias na=nautilus # Gnome's graphical file browser. Useful to click and dragging files into emails