dkwpa
This commit is contained in:
parent
1f264b5207
commit
b4cb965ac9
6 changed files with 40 additions and 19 deletions
14
.local/scripts/browserprompt.fish
Executable file
14
.local/scripts/browserprompt.fish
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue