diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index cbf951a..1ee3b2a 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -114,12 +114,13 @@ bye() { sudo protonvpn d } +# Use python to make simple calculations, like 'calc 24/8' calc() { - # Use python to make simple calculations, like 'calc 24/8' echo -n "$* = " python -c "print($*)" } +# Open a map with location after using whois whois-firefox() { mkfifo pipe; cat pipe & coords=$(whois "$1" | tee pipe | grep geoloc | sed -r 's/^geoloc:\s+//' | sort | uniq) @@ -127,3 +128,18 @@ whois-firefox() { firefox "https://osm.org/search?query=$coords#map=16/$slash_coords" rm pipe } + +# Search the Arch Wiki +aw() { + firefox "https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=$1" & +} + +# Search Arch Packages +pkg() { + firefox "https://www.archlinux.org/packages/?sort=&maintainer=&flagged=&q=$1" & +} + +# Search AUR Packages +aur() { + firefox "https://aur.archlinux.org/packages/?O=0&SeB=nd&outdated=&SB=n&SO=a&PP=50&K=$1" & +}