mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Merge 2a50587f8d into 397c085a19
This commit is contained in:
commit
de6f6468dd
1 changed files with 15 additions and 14 deletions
|
|
@ -55,6 +55,7 @@ function extract() {
|
||||||
(*.zip) unzip "$1" -d $extract_dir ;;
|
(*.zip) unzip "$1" -d $extract_dir ;;
|
||||||
(*.rar) unrar e -ad "$1" ;;
|
(*.rar) unrar e -ad "$1" ;;
|
||||||
(*.7z) 7za x "$1" ;;
|
(*.7z) 7za x "$1" ;;
|
||||||
|
(*.gpg) gpg -d "$1" | tar -xvzf - ;;
|
||||||
(*.deb)
|
(*.deb)
|
||||||
mkdir -p "$extract_dir/control"
|
mkdir -p "$extract_dir/control"
|
||||||
mkdir -p "$extract_dir/data"
|
mkdir -p "$extract_dir/data"
|
||||||
|
|
@ -76,5 +77,5 @@ function extract() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
alias x=extract
|
#alias x=extract # please do not write an alias here !
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue