From 75d7480036aebc489db5c7a3689fa608653c5430 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 26 Oct 2012 00:22:58 -0400 Subject: consolidate the .local/bin/x-* program-picking code into a `pick` command --- .local/bin/x-www-browser | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to '.local/bin/x-www-browser') diff --git a/.local/bin/x-www-browser b/.local/bin/x-www-browser index 0ead72a..bbd8943 100755 --- a/.local/bin/x-www-browser +++ b/.local/bin/x-www-browser @@ -1,14 +1,4 @@ #!/bin/sh -list='firefox iceweasel icecat conkeror' - -looking=true -for prog in $list; do - if $looking && [ -n "`pgrep $prog`" ]; then - $prog $@ - looking=false - fi -done -if $looking; then - conkeror $@ -fi +`pick -s conkeror iceweasel icecat firefox` "$@" +exit $? -- cgit v1.2.3-54-g00ecf