From 4045522d06743f78057e5c7bbd84b77e6f9fa33e Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Mon, 30 Aug 2021 19:49:23 +0200 Subject: [PATCH] Add a couple of fish aliases --- roles/dotfiles/files/fish/functions/cal.fish | 4 ++++ roles/dotfiles/files/fish/functions/ip.fish | 4 ++++ roles/dotfiles/files/fish/functions/upd.fish | 4 ++++ roles/dotfiles/files/fish/functions/upg.fish | 4 ++++ roles/dotfiles/files/fish/functions/vpn.fish | 4 ++++ roles/dotfiles/files/fish/functions/wtftoru.fish | 4 ++++ 6 files changed, 24 insertions(+) create mode 100644 roles/dotfiles/files/fish/functions/cal.fish create mode 100644 roles/dotfiles/files/fish/functions/ip.fish create mode 100644 roles/dotfiles/files/fish/functions/upd.fish create mode 100644 roles/dotfiles/files/fish/functions/upg.fish create mode 100644 roles/dotfiles/files/fish/functions/vpn.fish create mode 100644 roles/dotfiles/files/fish/functions/wtftoru.fish diff --git a/roles/dotfiles/files/fish/functions/cal.fish b/roles/dotfiles/files/fish/functions/cal.fish new file mode 100644 index 0000000..c2cb96d --- /dev/null +++ b/roles/dotfiles/files/fish/functions/cal.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function cal --wraps='ncal -wM -3' --description 'alias cal=ncal -wM -3' + ncal -wM -3 $argv; +end diff --git a/roles/dotfiles/files/fish/functions/ip.fish b/roles/dotfiles/files/fish/functions/ip.fish new file mode 100644 index 0000000..460cc1e --- /dev/null +++ b/roles/dotfiles/files/fish/functions/ip.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function ip --wraps='ip -c' --description 'alias ip=ip -c' + command ip -c $argv; +end diff --git a/roles/dotfiles/files/fish/functions/upd.fish b/roles/dotfiles/files/fish/functions/upd.fish new file mode 100644 index 0000000..897ba42 --- /dev/null +++ b/roles/dotfiles/files/fish/functions/upd.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function upd --wraps='sudo apt update' --description 'alias upd=sudo apt update' + sudo apt update $argv; +end diff --git a/roles/dotfiles/files/fish/functions/upg.fish b/roles/dotfiles/files/fish/functions/upg.fish new file mode 100644 index 0000000..8a265eb --- /dev/null +++ b/roles/dotfiles/files/fish/functions/upg.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function upg --wraps='sudo apt upgrade' --description 'alias upg=sudo apt upgrade' + sudo apt upgrade $argv; +end diff --git a/roles/dotfiles/files/fish/functions/vpn.fish b/roles/dotfiles/files/fish/functions/vpn.fish new file mode 100644 index 0000000..fa23d29 --- /dev/null +++ b/roles/dotfiles/files/fish/functions/vpn.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function vpn --wraps='sudo openvpn --config /etc/openvpn/watchguard_config/client.ovpn' --description 'alias vpn=sudo openvpn --config /etc/openvpn/watchguard_config/client.ovpn' + sudo openvpn --config /etc/openvpn/watchguard_config/client.ovpn $argv; +end diff --git a/roles/dotfiles/files/fish/functions/wtftoru.fish b/roles/dotfiles/files/fish/functions/wtftoru.fish new file mode 100644 index 0000000..d51608e --- /dev/null +++ b/roles/dotfiles/files/fish/functions/wtftoru.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function wtftoru --wraps='rosrun robot_debugger robot_debugger' --description 'alias wtftoru=rosrun robot_debugger robot_debugger' + rosrun robot_debugger robot_debugger $argv; +end