From 8ebbf471ee97ccc85cbee5a482e5f08296df74ac Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 8 Dec 2014 19:06:41 +0100 Subject: functions.zsh: Adding gpg to ex function. --- .zsh.after/functions.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 14d133d..c19f7ad 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -203,6 +203,8 @@ if [ -f $1 ] ; then *.tar.gz) tar xvzf $1 ;; *.bz2) bunzip2 $1 ;; *.rar) unrar x $1 ;; + *.pgp) gpg -o ${1%".pgp"} -d $1 ;; + *.gpg) gpg -o ${1%".gpg"} -d $1 ;; *.gz) gunzip $1 ;; *.tar) tar xvf $1 ;; *.tbz2) tar xvjf $1 ;; -- cgit v1.2.3-54-g00ecf