diff options
-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}" +} |