✏️ Modified scripts
This commit is contained in:
parent
c482a3ab80
commit
c3fe182d94
4 changed files with 5 additions and 5 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
article_md "https://$1" --format=html | hxnormalize -e | grep -v -e '^$' | pygmentize -l html
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/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
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/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
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ fi
|
||||||
# save our current working directory
|
# save our current working directory
|
||||||
sdir=$(pwd)
|
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
|
# and write that directory temporarily, appending it onto the end of our .zshrc
|
||||||
echo 'export sdir='$sdir >> $HOME/.zshrc
|
echo 'export sdir='$sdir >> $HOME/.zshrc
|
||||||
# immediately source it to use it in this shell session
|
# immediately source it to use it in this shell session
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue