diff options
author | Guangxiong Lin <[email protected]> | 2021-12-19 22:08:35 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2021-12-19 22:08:35 +0800 |
commit | 9d7d9138721c2c4567f8ff5e0d03198b087f809c (patch) | |
tree | 7b71a84fdcc9f57afbb3000390f4f209a848c59b | |
parent | 61e8bd0e3ae8604ee904d3661e42f26dab6c37bd (diff) | |
download | dotfiles-9d7d9138721c2c4567f8ff5e0d03198b087f809c.tar.gz dotfiles-9d7d9138721c2c4567f8ff5e0d03198b087f809c.tar.bz2 dotfiles-9d7d9138721c2c4567f8ff5e0d03198b087f809c.zip |
Set qutebrowser as default browser
-rw-r--r-- | .env | 2 | ||||
-rwxr-xr-x | scripts/init-mime.sh | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,8 @@ if [[ $TERM =~ 'st' ]]; then fi export TERMINAL=$TERMINAL +[ -f /usr/bin/qutebrowser ] && export BROWSER='qutebrowser' + [ -f /usr/share/z/z.sh -o -f /usr/local/share/z/z.sh ] && export _Z_CMD='j' export FZF_DEFAULT_COMMAND='find . -type f' diff --git a/scripts/init-mime.sh b/scripts/init-mime.sh index c58c46f..aec9446 100755 --- a/scripts/init-mime.sh +++ b/scripts/init-mime.sh @@ -11,3 +11,5 @@ set_xdg_mime () { } set_xdg_mime org.pwmt.zathura.desktop application/pdf +set_xdg_mime org.qutebrowser.qutebrowser.desktop x-scheme-handler/http +set_xdg_mime org.qutebrowser.qutebrowser.desktop x-scheme-handler/https |