Skip to content

Instantly share code, notes, and snippets.

@nickautomatic
Last active June 20, 2018 13:35
Show Gist options
  • Save nickautomatic/9e7376aab0f601837857fb6f92b8a687 to your computer and use it in GitHub Desktop.
Save nickautomatic/9e7376aab0f601837857fb6f92b8a687 to your computer and use it in GitHub Desktop.
Command Line Bits & Pieces

fzf

A command line fuzzy finder

https://github.com/junegunn/fzf

tldr

Simplified and community driven man pages with useful examples

http://tldr.sh/

tig

Text-based repo browser for Git

https://www.atlassian.com/blog/git/git-tig

https://github.com/jonas/tig

misc bits and pieces

Alt+. / Esc+. --> repeat argument from previous bash command

Reverse chronological local git branches:

alias gbr="git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)'|column -ts'|'"

Interactive git branch checkout:

alias gcoi="gbr | fzf --ansi | awk '{print \$1;}' | xargs git checkout"

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