+ *.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:
lex 2011-08-08 19:50:35 +03:00
commit 2a50587f8d

View file

@ -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)