Skip to content

Instantly share code, notes, and snippets.

@nickautomatic
Last active June 20, 2018 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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