Editing Blog/2024-02-23/fzf
From Rest of What I Know
Revision as of 20:02, 23 February 2024 by Roshan (talk | contribs) (Created page with "<syntaxhighlight inline>fzf</syntaxhighlight> is a fuzzy-finder on the terminal. I use it for all sorts of stuff. Selecting a git branch: <syntaxhighlight lang=zsh> gco() { branch="$(git branch | grep -v '^\+' | fzf | tr -d '[:space:]' | sed 's/^\*//')" if -z "$branch" ; then echo "No branch selected" return 1 fi git checkout "$branch" } </syntaxhighlight> File:20240223-fzf-branch-switching.gif|thumb|alt=A GIF of the script above in use, selectin...")
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Retrieved from βhttps://wiki.roshangeorge.dev/index.php/Blog/2024-02-23/fzfβ