This commit is contained in:
Never Gude 2026-01-30 20:36:20 +01:00
parent 1f264b5207
commit b4cb965ac9
6 changed files with 40 additions and 19 deletions

View file

@ -0,0 +1,14 @@
#!/usr/bin/env fish
set default "https://duckduckgo.com/?q="
set wiki "https://en.wikipedia.org/?search="
set input (prompt)
set split_input (string split -m 1 ":" $input)
switch $split_input[1]
case "w"
xdg-open "$wiki$split_input[2]"
case "*"
xdg-open "$default$input"
end