From 5a580a948de5678a8b920ae175bcd56fea9bf8c5 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 5 Jul 2018 11:56:32 +0200 Subject: [PATCH] Add new plugin: shortcut for Debian functions not provided in debian plugin from oh-my-zsh. --- zsh/custom/plugins/my_debian/my_debian.plugin.zsh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 zsh/custom/plugins/my_debian/my_debian.plugin.zsh diff --git a/zsh/custom/plugins/my_debian/my_debian.plugin.zsh b/zsh/custom/plugins/my_debian/my_debian.plugin.zsh new file mode 100644 index 0000000..4f32884 --- /dev/null +++ b/zsh/custom/plugins/my_debian/my_debian.plugin.zsh @@ -0,0 +1,15 @@ +# +# Functions +# +function apt-key_add { + key="$1" + + wget -q -O - "$key" | sudo apt-key add - +} + + + +# +# Aliases +# +alias aptka="apt-key_add $1"