From 23f1ea90df5771a75697137ab35d79fbe8dba441 Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Wed, 6 Nov 2019 17:00:30 +0100 Subject: [PATCH] Forgot to remove these files These fish functions were converted in earlier commits to executable scripts located in `~/.local/bin/`. They do not need to be fish functions anymore. --- .config/fish/functions/4chandl.fish | 20 -------------------- .config/fish/functions/backup.fish | 3 --- 2 files changed, 23 deletions(-) delete mode 100644 .config/fish/functions/4chandl.fish delete mode 100644 .config/fish/functions/backup.fish diff --git a/.config/fish/functions/4chandl.fish b/.config/fish/functions/4chandl.fish deleted file mode 100644 index b2ba737..0000000 --- a/.config/fish/functions/4chandl.fish +++ /dev/null @@ -1,20 +0,0 @@ -function 4chandl -d "Download media from 4chan thread" - if ! count $argv > /dev/null - echo 'No URL specified! Give the URL to thread as the only argument.' - end - set url $argv[1] - - set regex_4cdn '\/\/is2\.4chan\.org\/[a-z]+\/[A-Za-z0-9]+\.[A-Za-z]{3,4}' - - set total (curl -ks $url | grep -oE $regex_4cdn | uniq | wc -l) - echo total: $total - set counter 1 - - for image_url in (curl -k -s $url | grep -Eo $regex_4cdn | uniq | sed 's/^/https:/') - echo -n Downloading image $counter of $total... - wget --no-check-certificate -q -nc $image_url - echo ' Done' - set counter (math $counter + 1) - end - -end diff --git a/.config/fish/functions/backup.fish b/.config/fish/functions/backup.fish deleted file mode 100644 index d09e023..0000000 --- a/.config/fish/functions/backup.fish +++ /dev/null @@ -1,3 +0,0 @@ -function backup -d "backs up a file and appends to its name the date and time of backup" - cp $argv[1] $argv[1].bak.(date +"%Y%m%d%H%M%S") -end