aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
blob: 9fc876e54191d1ecc926b65720ebe3c0d3f9ae3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Git aliases
alias git-unpushed='git log --branches --not --remotes --no-walk --decorate --oneline'
alias gb='git checkout -b'
alias gfr='git fetch upstream && git rebase upstream/master'
alias git-undo='git reset --soft HEAD~1'

# Generic / Random / Utility
alias r='cd $REPOS/github.com/'
alias c='clear'
alias afk='pmset displaysleepnow'
alias dl="cd ~/Downloads"
alias l='ls -l'
alias todo='todoist l --filter "#Inbox"' 

# Kill all the tabs in Chrome to free up memory
# [C] explained: http://www.commandlinefu.com/commands/view/402/exclude-grep-from-your-grepped-output-of-ps-alias-included-in-description
alias chromekill="ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill"

alias fork-cleaner="fork-cleaner --token $(cat ~/.secrets/github-token)"

alias gcloud-configs="gcloud config configurations list"
alias gcloud-set-config="gcloud config configurations activate"