shell/fzf: add fzf-{bookmarks,history} scripts

This commit is contained in:
Henrik Lissner 2017-04-25 02:38:27 -04:00
parent d492a84b66
commit faa04874a1
3 changed files with 10 additions and 0 deletions

2
shell/fzf/aliases.zsh Normal file
View file

@ -0,0 +1,2 @@
alias bm='fzf-bookmarks'
alias hist='fzf-history'

4
shell/fzf/bin/fzf-bookmarks Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
url="$(firefox-bookmarks | gui-fzf | sed 's/^.*, http/http/')"
[[ $url ]] && open "$url"

4
shell/fzf/bin/fzf-history Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
url="$(firefox-history | gui-fzf | sed 's/^.*, http/http/')"
[[ $url ]] && open "$url"