Skip to content

Instantly share code, notes, and snippets.

@bigandy
Created October 3, 2017 10:50
Show Gist options
  • Save bigandy/e6e9279f8fa23b13f55437cb0f6a7f9c to your computer and use it in GitHub Desktop.
Save bigandy/e6e9279f8fa23b13f55437cb0f6a7f9c to your computer and use it in GitHub Desktop.
Home .functions
function gm() {
git commit -am "$1"
}
function gam() {
git add -A :/ && git commit -m "$1"
}
function take() {
mkdir $1 && cd $1
}
pass() {
if [ -n "$1" ]
then
pwgen -sy $1 1 |pbcopy |pbpaste; echo " Has been copied to clipboard"
else
pwgen -sy 40 1 |pbcopy |pbpaste; echo "Has been copied to clipboard"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment