diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-03-04 00:12:48 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-03-04 00:12:48 +0000 |
commit | 05ae7f24a08be580638ca4cc843ac47cf4038016 (patch) | |
tree | ab9431ade6d400ed3c75248c0fbf82ff37cb048c /.uzbl/scripts/url_from_surfraw.sh | |
parent | c5d139e3b489043fe3f27c545ff7966fc2569979 (diff) |
Remove uzbl
Diffstat (limited to '.uzbl/scripts/url_from_surfraw.sh')
-rwxr-xr-x | .uzbl/scripts/url_from_surfraw.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/.uzbl/scripts/url_from_surfraw.sh b/.uzbl/scripts/url_from_surfraw.sh deleted file mode 100755 index bf3c501..0000000 --- a/.uzbl/scripts/url_from_surfraw.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -DEFAULT_SEARCH=startpage -string=$1 -cmd=$2 -set -- $string -is_elvi=$(surfraw -elvi | grep -c "^$1\s") -nbr_words=$(echo "$string" | wc -w) -if [ "$nbr_words" -eq 1 ] && [ "$is_elvi" -eq 0 ] && ([[ "$string" == *.* ]] || [[ "$string" == *:* ]]) -then - url="$1" -elif [ $is_elvi -eq 1 ] -then - url="$(surfraw -print $string)" -else - url="$(surfraw -print $DEFAULT_SEARCH $string)" -fi -echo "$cmd $url" > $UZBL_FIFO |