Skip to content

Commit

Permalink
print archived file name; update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWolf-01 committed Jul 27, 2024
1 parent 3753f84 commit ab501bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Scripts for pushing conflicts to deal with them in an IDE and fixing occasional

**Functions**

- ``o`` (open file explorer)
- ``o`` (open file explorer or the file given as argument)
- ``mcd`` (make directory and cd into it)
- ``targz`` (create a .tar.gz archive, using `zopfli`, `pigz` or `gzip` for compression)
- ``extract`` (extracts archived files / mounts disk images)
Expand All @@ -116,7 +116,7 @@ Scripts for pushing conflicts to deal with them in an IDE and fixing occasional
directories first.)
- ``newsshpwd`` (change the ssh passphrase of given key)
- ``numel`` (number of elements in folder)
using `\conda` / `\pip` )
- ``archive_md` (archive websites as markdown using [dhravya/markdowner](https://github.com/dhravya/markdowner)
- and many more ... (see functions / aliases in [zsh folder](https://github.com/MaxWolf-01/dotfiles/tree/master/zsh))

Various **scripts**, such as gnome keyboard shortcut backup/restore, laptop battery limiter, backup scripts, nightlight
Expand Down
1 change: 1 addition & 0 deletions zsh/functions
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,6 @@ function archive_md() {
local filename="${url//[^a-zA-Z0-9]/_}.md"
# TODO: optional parameters for subpages, etc.
curl -s 'https://md.dhr.wtf/?url='"$url" -H 'Content-Type: text/plain' > "$archive_dir/$filename"
echo "$archive_dir/$filename"
}

0 comments on commit ab501bd

Please sign in to comment.