There are a number of commands and hooks that I use frequently. This repo gathers them in one place.
Install this on a new host by doing:
curl -sL http://bit.ly/weirdfire | sh
The following global commands are added by this package:
shs <command>- lets you do stuff with the Shellscripts repo (upgrade, push, etc.)
Hooks add and remove commands based on the working environment.
The following shortcuts are added when working inside a repository:
st|status- shows the current status of the repoci- commits files; the first argument is the commit message and the rest are the files/dirs to commitadd- starts tracking files and/or stages them in the current commitpush- pushes the repopull- pulls the repolog- calls the appropriate log commandrec|record- allows you to select lines to include in the current commit
In a directory that contains a Dockerfile the following commands are added:
build- does docker build (see Tagging)push- does a docker push of the latest built tagrun- runs the latest built tagshell- force runs a shell on the latest tagstart- runs and detaches from the containerstop- stops a previously started/detached containerlogs- runs docker logs on the previously started/detached container
If you create the following files, their contents change the docker commands:
.dockername- the name of the image to build