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 does a word search through the commit messages in the repository
git log --color=always --all --grep=<search_term>
$ glogs initial
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>
$ glh 42-57 memory_files.py
vack searches files through
ack and opens the results in vim as separate tabs
vim -p $(ack -l <search_term>)
gpto, also aliased to gepetto, takes the current branch and create pushes it to origin.
local branch=$(git symbolic-ref --short HEAD)
git push --set-upstream origin $branch
$ gpto $ gepetto
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.
gcos searches through your existing branches and switches to the first branch that matches the search string.
$ 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.'