mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Update functions.zsh
Translated. P.S. There are no options to create archives, but extracting can be excess.
This commit is contained in:
parent
1457f9d0a3
commit
0926eb3014
1 changed files with 4 additions and 4 deletions
|
|
@ -252,7 +252,7 @@ function ark () {
|
|||
(*.zip) unzip $2 ;;
|
||||
(*.Z) uncompress $2 ;;
|
||||
(*.7z) 7z x $2 ;;
|
||||
(*) echo "'$2' неправильный архив" ;;
|
||||
(*) echo "'$2' Wrong archive!" ;;
|
||||
esac ;;
|
||||
(c) case $2 in
|
||||
(tbz) tar cjvf $3.tar.bz2 $3 ;;
|
||||
|
|
@ -262,8 +262,8 @@ function ark () {
|
|||
(gz) gzip -c -9 -n $3 > $3.gz ;;
|
||||
(zip) zip -r $3.zip $3 ;;
|
||||
(7z) 7z a $3.7z $3 ;;
|
||||
(*) echo "такого я не умею(" ;;
|
||||
(*) echo "Can't do it." ;;
|
||||
esac ;;
|
||||
(*) echo "WATT?" ;;
|
||||
(*) echo "Wrong command!" ;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue