From e680dbf08e6787f039bc3c29c6e76a152161f7c0 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sat, 15 Sep 2018 01:59:48 -0700 Subject: [PATCH] Removed fqo script --- fqo.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 fqo.sh diff --git a/fqo.sh b/fqo.sh deleted file mode 100755 index cfb1bbb..0000000 --- a/fqo.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash -# Fuzzy find a file and then check which package owns it - -printHelp() { -cat << EOF -fqo - fuzzy find a file and then check which package owns it -Usage: fqo [-h|--help] [patterns] - -Options: - -h show this help page -EOF -} - -while true; do - case "${1}" in - "-h"|"--help") - printHelp - exit - ;; - --) - shift - break - ;; - -?*) - echo "Not an option: ${1}" >&2 && exit 1 - exit - ;; - *) - break; - ;; - esac -done - -[[ -z "${*}" ]] && echo "No patterns specified" && exit 1 - -locate --all --ignore-case --null -- "${@}" | fzf --read0 --exit-0 --select-1 | pacman -Qo -