From de1985597c38b2c55817b3208fbc0801a9a8910a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 29 Oct 2008 04:25:50 +0100 Subject: unzip creates new folder --- bashrc/common/alias.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bashrc/common/alias.sh b/bashrc/common/alias.sh index 03df556..9712a51 100644 --- a/bashrc/common/alias.sh +++ b/bashrc/common/alias.sh @@ -27,3 +27,7 @@ mktar() { # rar -> unrar alias rar=unrar +unzip() { + [[ -f "./${1}" ]] && return 1 + mkcd "${1%%.zip}" && unzip "../${1}" +} -- cgit v1.2.3