.dotfiles/.scripts/search.fish

10 lines
182 B
Fish
Raw Permalink Normal View History

2024-10-21 21:34:03 +03:00
#!/bin/env fish
2024-10-23 23:07:12 +03:00
set search (read -P ">")
2024-10-21 21:34:03 +03:00
if test "$search" != ""
firefox --new-tab "https://www.google.de/search?q=$search" && swaymsg [app_id="org.mozilla.firefox"] focus
end