summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2008-10-29 04:25:50 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2008-10-29 04:25:50 +0100
commitde1985597c38b2c55817b3208fbc0801a9a8910a (patch)
treef8d45fdf69d06ef7bd58356bcfbec0526852c7cf
parentcab68b75fdf70d400f301e21472cda3a00fa1ccf (diff)
downloaddotfiles-de1985597c38b2c55817b3208fbc0801a9a8910a.tar.gz
dotfiles-de1985597c38b2c55817b3208fbc0801a9a8910a.tar.xz
dotfiles-de1985597c38b2c55817b3208fbc0801a9a8910a.zip
unzip creates new folder
-rw-r--r--bashrc/common/alias.sh4
1 files changed, 4 insertions, 0 deletions
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}"
+}