Last active
October 5, 2021 07:31
-
-
Save LeZuse/09b5c3e8c839ebe415975e5e45fc96bf to your computer and use it in GitHub Desktop.
brew services list/start/stop fzf ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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