Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Created March 14, 2013 00:35
Show Gist options
  • Save ttscoff/5157849 to your computer and use it in GitHub Desktop.
Save ttscoff/5157849 to your computer and use it in GitHub Desktop.
# Select the current directory in launchbar, optionally a file
lb () {
if [[ $# = 1 ]]; then
[[ -e "$(pwd)/$1" ]] && open "x-launchbar:select?file=$(pwd)/$1" || open "x-launchbar:select?file=$1"
else
open "x-launchbar:select?file=$(pwd)"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment