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"