dotfiles/files/scripts/wezterm-open-url

4 lines
124 B
Bash
Executable file

#!/usr/bin/env bash
if [[ $1 == http* ]]; then
printf "\033]1337;SetUserVar=open_url=%s\007" "$(echo -n "$1" | base64)"
fi