added abbreviations for nordvpn in fish config

This commit is contained in:
Lucien Cartier-Tilet 2019-11-29 21:15:37 +01:00
parent 5945d47227
commit 45559e2f94
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 30 additions and 3 deletions

View File

@ -71,7 +71,7 @@
- [[#compression][Compression]] - [[#compression][Compression]]
- [[#feh][Feh]] - [[#feh][Feh]]
- [[#ls][ls]] - [[#ls][ls]]
- [[#networkmanager][NetworkManager]] - [[#network-management][Network Management]]
- [[#wget][Wget]] - [[#wget][Wget]]
* Presentation * Presentation
@ -581,16 +581,34 @@
abbr lsl 'ls -ahl' abbr lsl 'ls -ahl'
#+END_SRC #+END_SRC
*** NetworkManager *** Network Management
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-5f9d4866-3086-4ed9-9ff3-d80a0af36593 :CUSTOM_ID: h-5f9d4866-3086-4ed9-9ff3-d80a0af36593
:END: :END:
This is just =nmcli= with sane default options, that is a pretty output First, we have just =nmcli= with sane default options, that is a pretty output
with colors. with colors.
#+BEGIN_SRC fish #+BEGIN_SRC fish
abbr nmcli 'nmcli -p -c auto' abbr nmcli 'nmcli -p -c auto'
#+END_SRC #+END_SRC
Next, we have some NordVPN-related shortcuts. The first one is a simple
abbreviation to =nordvpn=. The second one is a shortcut to connect to a
server, and to disconnect from the current server.
#+BEGIN_SRC fish
abbr n 'nordvpn'
abbr nc 'nordvpn c'
abbr nd 'nordvpn d'
#+END_SRC
I also have a couple of shortcuts to quickly connect to some preselected
countries, mainly France, Germany, Japan and the US.
#+BEGIN_SRC fish
abbr ncf 'nordvpn c France'
abbr ncg 'nordvpn c Germany'
abbr ncj 'nordvpn c Japan'
abbr ncu 'nordvpn c United_States'
#+END_SRC
*** Wget *** Wget
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-74f84f1c-433d-488a-88a7-89915c1a3bd5 :CUSTOM_ID: h-74f84f1c-433d-488a-88a7-89915c1a3bd5

View File

@ -119,4 +119,13 @@ abbr lsl 'ls -ahl'
abbr nmcli 'nmcli -p -c auto' abbr nmcli 'nmcli -p -c auto'
abbr n 'nordvpn'
abbr nc 'nordvpn c'
abbr nd 'nordvpn d'
abbr ncf 'nordvpn c France'
abbr ncg 'nordvpn c Germany'
abbr ncj 'nordvpn c Japan'
abbr ncu 'nordvpn c United_States'
abbr wget 'wget -c' abbr wget 'wget -c'