Skip to content

Instantly share code, notes, and snippets.

@LeZuse
Last active October 5, 2021 07:31
Show Gist options
  • Save LeZuse/09b5c3e8c839ebe415975e5e45fc96bf to your computer and use it in GitHub Desktop.
Save LeZuse/09b5c3e8c839ebe415975e5e45fc96bf to your computer and use it in GitHub Desktop.
brew services list/start/stop fzf ui
function services() {
brew services \
`echo -e 'list\nstart\nstop' | fzf --header 'brew services'` \
`brew services list | tail -n +2 | \
fzf -d' ' --with-nth=1 --preview='brew services list | grep {}' --preview-window=up:1 | \
cut -d' ' -f1`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment