Skip to content
Snippets Groups Projects
Commit 0e755d32 authored by nimrod's avatar nimrod
Browse files

Moved bfg function to shell script, download bfg jar to ~/Documents/bin instead of ~/Downloads.

parent d5d2823f
No related branches found
No related tags found
No related merge requests found
...@@ -191,11 +191,6 @@ __sync_comics () { ...@@ -191,11 +191,6 @@ __sync_comics () {
find "$HOME/Downloads/Comics/" -name "$(date --date '2 month ago' +'0-Day\ Week\ of\ %Y.%m.*')" -exec rm -r {} + find "$HOME/Downloads/Comics/" -name "$(date --date '2 month ago' +'0-Day\ Week\ of\ %Y.%m.*')" -exec rm -r {} +
} }
bfg () {
[ -f "$HOME/Downloads/bfg.jar" ] || curl 'https://search.maven.org/remote_content?g=com.madgag&a=bfg&v=LATEST' -sLo "$HOME/Downloads/bfg.jar"
java -jar "$HOME/Downloads/bfg.jar" "$@"
}
ddg () { ddg () {
lynx "https://duckduckgo.com/lite/?q=$(urlencode "$@")" lynx "https://duckduckgo.com/lite/?q=$(urlencode "$@")"
} }
......
#!/bin/sh
set -eu
__BFG_JAR="$HOME/Documents/bin/bfg.jar"
[ -f "$__BFG_JAR" ] || curl 'https://search.maven.org/remote_content?g=com.madgag&a=bfg&v=LATEST' -sLO "$__BFG_JAR"
exec java -jar "$__BFG_JAR" "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment