dotfiles/files/scripts/wezterm-open-url

5 lines
124 B
Text
Raw Normal View History

2024-08-02 11:12:36 +02:00
#!/usr/bin/env bash
if [[ $1 == http* ]]; then
printf "\033]1337;SetUserVar=open_url=%s\007" "$(echo -n "$1" | base64)"
fi