mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
+ *.gpg extention support
+ cosmetics
- commented 'x' alias which is not appropriate in this file (best in 'aliases.zsh' file ?) with this letter ('alias x' can do possible comflicts with the frequent 'alias x=startx')... imho ^^
This commit is contained in:
parent
a738ca9b64
commit
2a50587f8d
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,7 +77,7 @@ function extract() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
alias x=extract
|
#alias x=extract # please do not write an alias here !
|
||||||
|
|
||||||
# add extract completion function to path
|
# add extract completion function to path
|
||||||
fpath=($ZSH/plugins/extract $fpath)
|
fpath=($ZSH/plugins/extract $fpath)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue