commit 2f0bf31ac9fefe2a1c40a4747d77ddd0dca74b7f parent 9659e36c14610567dc6e69bc5cd0ea78d4a3f3b8 Author: My mmc1 name test1 <mm1c@alarm.test1> Date: Sat, 27 Jun 2020 02:36:02 +0100 Merge branch 'master' of https://github.com/m040601/handlers Diffstat:
| M | README.md | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -1 +1,29 @@ handlers and pipes + +### apr2020 drew + + + +Managing my dotfiles as a git repository | Drew DeVault’s Blog +https://drewdevault.com/2019/12/30/dotfiles.html + +``` +#!/bin/sh +case "${1%%:*}" in + http|https|*.pdf) + exec qutebrowser "$1" + ;; + mailto) + exec aerc "$1" + ;; + *) + exec /usr/bin/xdg-open "$@" + ;; +esac +``` + +Replacing the needlessly annoying-to-customize xdg-open with one that just does what I want, falling back to /usr/bin/xdg-open if necessary. Many other non-shadowed scripts and programs are found in ~/bin as well. + + + +