From 45559e2f9426efbb51fb7a345dc725064fdbf2c8 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Fri, 29 Nov 2019 21:15:37 +0100 Subject: [PATCH] added abbreviations for nordvpn in fish config --- .config/fish/README.org | 24 +++++++++++++++++++++--- .config/fish/config.fish | 9 +++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.config/fish/README.org b/.config/fish/README.org index 3e480a1..c98dad2 100644 --- a/.config/fish/README.org +++ b/.config/fish/README.org @@ -71,7 +71,7 @@ - [[#compression][Compression]] - [[#feh][Feh]] - [[#ls][ls]] - - [[#networkmanager][NetworkManager]] + - [[#network-management][Network Management]] - [[#wget][Wget]] * Presentation @@ -581,16 +581,34 @@ abbr lsl 'ls -ahl' #+END_SRC -*** NetworkManager +*** Network Management :PROPERTIES: :CUSTOM_ID: h-5f9d4866-3086-4ed9-9ff3-d80a0af36593 :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. #+BEGIN_SRC fish abbr nmcli 'nmcli -p -c auto' #+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 :PROPERTIES: :CUSTOM_ID: h-74f84f1c-433d-488a-88a7-89915c1a3bd5 diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 23907b8..cff619f 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -119,4 +119,13 @@ abbr lsl 'ls -ahl' 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'