From c3fe182d948347625136a381d8ae8ca7e9fd17d7 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Mon, 5 Sep 2022 07:23:32 -0700 Subject: [PATCH] :pencil2: Modified scripts --- scripts/acrl | 3 --- scripts/hcrl | 2 +- scripts/mcrl | 2 +- scripts/sdir | 3 +++ 4 files changed, 5 insertions(+), 5 deletions(-) delete mode 100755 scripts/acrl diff --git a/scripts/acrl b/scripts/acrl deleted file mode 100755 index 7e6a32c3..00000000 --- a/scripts/acrl +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -article_md "https://$1" --format=html | hxnormalize -e | grep -v -e '^$' | pygmentize -l html diff --git a/scripts/hcrl b/scripts/hcrl index c48b6613..6c95103b 100755 --- a/scripts/hcrl +++ b/scripts/hcrl @@ -1,3 +1,3 @@ #!/bin/bash -torsocks curl -s https://{$1} | hxnormalize -e | grep -v -e '^$' | pygmentize -l html +curl -s https://{$1} | hxnormalize -e | grep -v -e '^$' | pygmentize -l html diff --git a/scripts/mcrl b/scripts/mcrl index f9ea469c..ae452e9b 100755 --- a/scripts/mcrl +++ b/scripts/mcrl @@ -1,3 +1,3 @@ #!/bin/bash -torsocks curl -sL https://${1} | pandoc -f html -t markdown | grep -v -e '^$' | grep -v -e ":::" | pygmentize -l markdown +curl -sL https://${1} | pandoc -f html -t markdown | grep -v -e '^$' | grep -v -e ":::" | pygmentize -l markdown diff --git a/scripts/sdir b/scripts/sdir index bce278e6..47f26e87 100755 --- a/scripts/sdir +++ b/scripts/sdir @@ -14,6 +14,9 @@ fi # save our current working directory sdir=$(pwd) +# make sure we don't overwrite our .zshrc +set -o noclobber + # and write that directory temporarily, appending it onto the end of our .zshrc echo 'export sdir='$sdir >> $HOME/.zshrc # immediately source it to use it in this shell session