-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfbrc
22 lines (16 loc) · 938 Bytes
/
fbrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# arcanist
alias ad='arc diff --apply-patches --amend-all';
alias ad1='arc diff HEAD^ --apply-patches --amend-all'; alias adall='arc diff master --apply-patches --amend-all';
alias prev1='arc diff HEAD^ --preview --amend-autofixes --excuse preview';
alias new='git commit -a -m "creating a new branch" && git checkout master && git pull origin master && arc feature ';
function reverthg () { hg shelve && hg checkout master && hg pull --rebase && Tools/revert $1 "build break" }
# hg
function revert () { git stash && git checkout master && git pull --rebase && Tools/revert $1 "build break" }
# alias paste="pbpaste | arc paste | sed 's/[^:]*: //' | pbcopy"
alias macpaste="pbpaste | fbarc paste | sed 's/[^:]*: //' | pbcopy"
alias tmpaste="tmux show-buffer | arc paste | sed 's/[^:]*: //' "
function dl () {
rsync --copy-links [email protected]:$1 ~/Downloads/
}
PATH=$PATH:/opt/facebook/hg/bin
export PATH