-
Notifications
You must be signed in to change notification settings - Fork 8
/
.aliases
executable file
·44 lines (38 loc) · 1.32 KB
/
.aliases
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
DOTFILE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Fast traversing up the dir tree
alias cd.="cd .."
alias cd..="cd ../.."
alias cd...="cd ../../.."
# Misc
alias ls='ls -FlGo'
alias lsd="ls -alFG | grep '^d'"
alias find-big-files="find . -type f -print0 | xargs -0 stat -f '%z %N%n' | sort -nr | head -n 20"
alias ls-bonjour-ssh="dns-sd -B _ssh._tcp ."
# Git
alias ga="git add"
alias gaa="git add --all"
alias gb="git branch"
alias go="git checkout"
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias glo="git log --oneline"
alias gd="git diff"
alias gs="git status"
alias gf="git fetch"
alias gr="git rebase"
alias gsq="git rebase -i HEAD~2"
alias gm="git merge"
alias gp="git push"
alias gc="git commit"
alias gcm="git commit -m"
alias gcam="git commit -am"
alias gu="git up"
alias gfsrp="git fetch && git stash && git rebase && git stash pop"
# Application aliases
alias emacs="open -a Emacs"
alias te="open -a Textedit"
alias preview="open -a Preview"
alias f="open -a Finder"
alias sublime="/Applications/\"Sublime Text.app\"/Contents/SharedSupport/bin/subl"
alias mvtinfo="python ~/Development/Tools/PPTools/MVTInfo/decode.py"
# Misc
alias swift-translate="swift run --package-path ~/Development/misc/swift-translate swift-translate"