diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2008-10-29 04:25:50 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2008-10-29 04:25:50 +0100 |
commit | de1985597c38b2c55817b3208fbc0801a9a8910a (patch) | |
tree | f8d45fdf69d06ef7bd58356bcfbec0526852c7cf | |
parent | cab68b75fdf70d400f301e21472cda3a00fa1ccf (diff) | |
download | dotfiles-de1985597c38b2c55817b3208fbc0801a9a8910a.tar.gz dotfiles-de1985597c38b2c55817b3208fbc0801a9a8910a.tar.xz dotfiles-de1985597c38b2c55817b3208fbc0801a9a8910a.zip |
unzip creates new folder
-rw-r--r-- | bashrc/common/alias.sh | 4 |
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}" +} |