From faa04874a101bb7cef7aa8fe758ec3057283dcfd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 25 Apr 2017 02:38:27 -0400 Subject: [PATCH] shell/fzf: add fzf-{bookmarks,history} scripts --- shell/fzf/aliases.zsh | 2 ++ shell/fzf/bin/fzf-bookmarks | 4 ++++ shell/fzf/bin/fzf-history | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 shell/fzf/aliases.zsh create mode 100755 shell/fzf/bin/fzf-bookmarks create mode 100755 shell/fzf/bin/fzf-history diff --git a/shell/fzf/aliases.zsh b/shell/fzf/aliases.zsh new file mode 100644 index 00000000..5a649cee --- /dev/null +++ b/shell/fzf/aliases.zsh @@ -0,0 +1,2 @@ +alias bm='fzf-bookmarks' +alias hist='fzf-history' diff --git a/shell/fzf/bin/fzf-bookmarks b/shell/fzf/bin/fzf-bookmarks new file mode 100755 index 00000000..f58a4321 --- /dev/null +++ b/shell/fzf/bin/fzf-bookmarks @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +url="$(firefox-bookmarks | gui-fzf | sed 's/^.*, http/http/')" +[[ $url ]] && open "$url" diff --git a/shell/fzf/bin/fzf-history b/shell/fzf/bin/fzf-history new file mode 100755 index 00000000..baf1753d --- /dev/null +++ b/shell/fzf/bin/fzf-history @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +url="$(firefox-history | gui-fzf | sed 's/^.*, http/http/')" +[[ $url ]] && open "$url"