Skip to content

Instantly share code, notes, and snippets.

@SlevinBE
Created July 27, 2015 11:35
Show Gist options
  • Save SlevinBE/4cae6f0b12051ea5c87a to your computer and use it in GitHub Desktop.
Save SlevinBE/4cae6f0b12051ea5c87a to your computer and use it in GitHub Desktop.
Bash script with some integration commands between sheet (a shell bookmarking lib) and fzf (a fuzzy search command lib). Written for OSX
# find a sheet and show its content
sheetf() {
SHEET_NAME=$(sheet | fzf)
sheet $SHEET_NAME
}
#find a sheet and copy it's contents onto the clipboard
sheetfc() {
SHEET_NAME=$(sheet | fzf)
sheet $SHEET_NAME | pbcopy
}
@SlevinBE
Copy link
Author

You can use this by sourcing the script in your ~/.bash_profile file:

source ~/.sheet-fzf.bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment