-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaliases
More file actions
executable file
·48 lines (41 loc) · 1.47 KB
/
aliases
File metadata and controls
executable file
·48 lines (41 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
# Dir
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias p='pwd'
# Python
alias pweb='python3 -m http.server'
# Android
alias l=pidcat
alias logcat=pidcat
alias adb_record="adb shell screenrecord /sdcard/recording.mp4 && adb pull /sdcard/recording.mp4 ~/Desktop/recording.mp4"
alias adb_screencap="adb shell screencap -p /sdcard/screen.png && adb pull /sdcard/screen.png ~/Desktop/screen.png"
# Hub
alias git=hub
# Git
alias g='git'
alias gut='git'
alias gaa='git add --all'
alias gl='git pull --prune'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gp=push_and_set_upstream
alias gd='git diff'
alias gcp='git cherry-pick'
alias gc='git commit'
alias gca='git add --all && git commit -a'
alias gco='git checkout'
alias gb='git branch'
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias gaa='git add --all && gs'
alias gf='git fetch --prune'
alias gr='gf && ga && git stash && git pull --rebase && git stash apply'
alias gup='git remote update -p; git merge --ff-only @{u}'
alias ghis='git for-each-ref --count=20 --sort=-committerdate refs/heads/ --format="%(refname:short)"'
alias gu='git fetch && git rebase --autostash'
# Brew
alias bu='brew upgrade && brew update --all && brew cleanup && brew doctor && brew prune'
alias bcu='brew cask doctor && brew cleanup'
# Open
alias o='open .'