2021-12-11 11:49:53 +01:00
|
|
|
#! /bin/zsh
|
2023-10-05 10:14:04 +02:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-07-12 08:47:40 +02:00
|
|
|
# shellcheck shell=bash
|
2021-12-11 11:49:53 +01:00
|
|
|
|
2018-01-29 16:10:37 +01:00
|
|
|
function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; }
|
|
|
|
|
2021-12-11 11:49:53 +01:00
|
|
|
function duckduck() { elinks -dump "https://duckduckgo.com/?q=$(escape "$@")"; }
|
|
|
|
function google() { elinks -dump "https://www.google.de/search?q=$(escape "$@")"; }
|
|
|
|
|
|
|
|
function wetter() { curl --tr-encoding -H "Accept-Language: ${LANG%_*}" "https://wttr.in/$*"; }
|
|
|
|
function wetter2() { curl --tr-encoding -H "Accept-Language: ${LANG%_*}" "https://v2.wttr.in/$*"; }
|
2022-06-07 20:41:25 +02:00
|
|
|
alias mdw=mdw.sh
|