These are some of our favorite shortcuts, enjoy!
When you run please
, it stores your authentication to your terminal session by running sudo !!
as its alias. The user will be prompted to provide the password where necessary.
This was Isams' favorite list command.
gs
runs git status
as its alias.
gfa
runs git fetch --all
as its alias.
gl
runs git log -n5
as its alias.
gc "Some long message."
runs git commit -m "Some long message."
as its alias. The user still needs to provide the message, by replacing the placeholder text in this example.
gco someBranch
runs git checkout someBranch
as its alias. The user still needs to provide the branch, by replacing the placeholder text in this example.
gb
runs git checkout -b someOtherBranch
as its alias. The user still needs to provide the branch, by replacing the placeholder text in this example.
ga
runs git add -A .
as its alias. This won't allow to add specific files.
gd
runs git diff
as its alias.
gpsu
runs git push --set-upstream origin master
as its alias. Only useful when initializing a repository.
gp
runs git push
as its alias. Provided user runs ga && gc "Some long message."
gm someBranch
runs git merge someBranch
as its alias. The user still needs to provide the branch, by replacing the placeholder text in this example.
# utilities for zip files and linting
alias untar='tar -zxvf '
alias untar2='tar -xvjf '
alias jsl='jslint --nomen '
# customized grep commands
alias scan='grep -Rin --color'
alias scan_case='grep -Rn --color -l' # case-sensitive
alias scan_lite='grep -Rin --color -l' # only display filenames
alias scan_fast='grep -Rin --color --mmap'
# this shows files with size (bytes) of at least N digits
alias du_bytes='du -s * | grep "^[0-9]\{1\}"'
alias du_kb='du -s * | grep "^[0-9]\{4\}"'
alias du_mb='du -s * | grep "^[0-9]\{7\}"'
alias du_gb='du -s * | grep "^[0-9]\{10\}"'
alias du_n='du -s * | grep \"^[0-9]\{$1\}\"'