Skip to content

Instantly share code, notes, and snippets.

@lsd
Created November 25, 2015 01:13
Show Gist options
  • Save lsd/2a66bf592710aefc3d1e to your computer and use it in GitHub Desktop.
Save lsd/2a66bf592710aefc3d1e to your computer and use it in GitHub Desktop.
a place to throw zsh/shell aliases - complete .shell_aliases and other dotfiles should be in a public github repo though

Long/interesting command you'd like bookmarked for later? append 'BK' to save it to the $bookmarks file. Add this to ie .zshrc

bookmarks='~/bookmarks.cmdline.sh'
alias -g BK='>> $bookmarks && wc -l $bookmarks'

Usage

  • echo NotInteresting BK
  • git log --oneline | nl -v0 | sed 's/^ \+/&HEAD~/' BK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment