dotfiles

Configuration dotfiles
git clone git://git.wimdupont.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit f2bdb5196b7a97383272c0e014cab8bbbd72df04
parent 87973144f417d50eb12e9983774ecd384b4489f3
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sat, 13 Jul 2024 14:56:42 +0200

added extract

Diffstat:
M.bashrc | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -53,6 +53,20 @@ function findstr(){ grep -Rn . -e "$1" } +function extract () { + case $1 in + *.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf "$1";; + *.tar.gz|*.tgz) tar xzvf "$1";; + *.tar.xz|*.txz) tar xJvf "$1";; + *.tar) tar -xvf "$1";; + *.zip) unzip "$1";; + *.rar) unrar x "$1";; + *.7z) 7z x "$1";; + *.gz) gzip -dk "$1";; + *.gpg) gpg --decrypt-files "$1";; + esac +} + function vimis(){ sudo vim $(whereis $1 | cut -d ' ' -f2) }