Skip to content
my personal plugin for oh-my-zsh with random, oft-used commands
Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
daniel.plugin.zsh

README.md

daniel

plugin for oh-my-zsh with random, oft-used commands

These are commands that I often use, which are sometimes too complicated to easily remember:

glogs

glogs does a word search through the commit messages in the repository git log --color=always --all --grep=<search_term>

Usage:

$ glogs initial

glh

glh executes a line history, much like git log -p but based on an individual line range. It uses the built in autocomplete to pass in filenames, something that is not possible in the actual command. This command does not work for single lines, though git log -u -L<line1>,<line2>:<file_name>

Usage:

$ glh 42-57 memory_files.py

vack

vack searches files through ack and opens the results in vim as separate tabs vim -p $(ack -l <search_term>)

Usage:

vack donuts

gpto

gpto, also aliased to gepetto, takes the current branch and create pushes it to origin. local branch=$(git symbolic-ref --short HEAD) combined with git push --set-upstream origin $branch

Usage:

$ gpto

$ gepetto

shell_plus

shell_plus is a convenience shortcut for python manage.py shell_plus in Django. If it doesn't find the command in the current folder, then it moves one directory up, and attempts to execute it from that folder.

Usage:

$ shell_plus

gcos

gcos searches through your existing branches and switches to the first branch that matches the search string.

Usage

$ gcos pony
Switched to branch 'feature/31_add_pony_to_django'
Your branch is up to date with 'origin/feature/31_add_pony_to_django.'
You can’t perform that action at this time.