dot

packages and services management
Log | Files | Refs | README

commit e9ffcc44fce01c13a783a340a9ce8a9d7ad6469c
parent bacc04b58dcfeedb234642757abcc21d86615bba
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 10 Jan 2018 20:42:41 +0100

less weird construct

Diffstat:
Mbin/xdg-open | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/bin/xdg-open b/bin/xdg-open @@ -119,11 +119,10 @@ case $scheme in curl -Lo "$HOME/lib/http/text/$host/${path##*/}" "$1" exec "$0" "$HOME/lib/http/text/$host/${path##*/}" ;; + (*) + exec retawq "$1" + ;; esac - for b in retawq firefox chromium chromium-browser chrome x-www-browser - do command -v "$b" && break - done - exec $b "$1" ;; (irc) [ "$port" = . ] && port=6667 @@ -199,6 +198,9 @@ esac (*.o|*.a) exec radare2 "$1" ;; +(*.html) + exec retawq "$1" + ;; #--- archive ------------------------------------------------------------------- (*.tgz) mv "$1" "${1%.tgz}.tar.gz"