diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-04-19 15:24:25 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-04-19 15:24:25 +0100 |
commit | e146e947c52ac4adbe426b3f893faff1e46ed5f8 (patch) | |
tree | 1605bf4eb78cc619988c92632f3cee2a56143fd5 /qutebrowser/userscripts/url-from-surfraw | |
parent | 83bd503208d45fa837348441196dd07223b13e3e (diff) |
Use GNU stow for dotfiles management
Diffstat (limited to 'qutebrowser/userscripts/url-from-surfraw')
-rwxr-xr-x | qutebrowser/userscripts/url-from-surfraw | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/qutebrowser/userscripts/url-from-surfraw b/qutebrowser/userscripts/url-from-surfraw deleted file mode 100755 index 9bd6795..0000000 --- a/qutebrowser/userscripts/url-from-surfraw +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -DEFAULT_SEARCH=startpage - -if [[ $1 =~ ^-.$ ]]; then - option="$1" - shift 1 -fi - -is_elvi=$(surfraw -elvi | grep -c "^$1\s") -nbr_words=$(echo $1 | wc -w) - -if [[ $is_elvi -eq 0 && $nbr_words -eq 1 && ($1 == *.* || $1 == *:*) ]]; then - url="$1" -else - [[ $is_elvi -eq 0 ]] && sr="$DEFAULT_SEARCH $*" || sr=$* - url=$(surfraw -print $sr) -fi - -echo "open $option $url" >> $QUTE_FIFO |