dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit 0348b1c0df67d71272f0cc78b6faf7c105273d1f
parent 7a40fc129ca06f08d28612918a57110e89d6c3fa
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date:   Mon, 18 May 2020 16:46:37 +0200

fish: add extract_recursive + noproxy alias

Diffstat:
Mfish/.config/fish/config.fish | 2++
Afish/.config/fish/functions/extract_recursive.fish | 10++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish @@ -28,4 +28,6 @@ else alias :vsplit 'swaymsg split h\; exec alacritty' end +alias noproxy 'env http_proxy="" https_proxy="" ftp_proxy=""' + source /usr/share/autojump/autojump.fish diff --git a/fish/.config/fish/functions/extract_recursive.fish b/fish/.config/fish/functions/extract_recursive.fish @@ -0,0 +1,10 @@ +function extract_recursive + set folname (echo $argv[1] | sed 's/\.[^.]*$//') + 7z x $argv[1] -o$folname + echo "0" > /tmp/extrout + while read < /tmp/extrout + find $folname \( -name '*.zip' -o -name '*.xz' -o -name '*.tar' -o -name '*.gz' -o -name "*.tgz" \) -type f -exec bash -c '7z x "{}" -o$(echo {} | sed \'s/\\.[^.]*$//\') && rm {}' \; | tee /tmp/extrout + end + end +end +