-
Notifications
You must be signed in to change notification settings - Fork 0
/
alvin_cmd.sh
52 lines (39 loc) · 823 Bytes
/
alvin_cmd.sh
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
49
50
51
52
#!/bin/bash
# Put all my custom command here
function hey(){
echo "Test Success!"
}
function wpt(){
third_party/blink/tools/run_web_tests.py -t Default "$1"
}
function build(){
format && autoninja -C out/Default "$1"
}
function bcros(){
autoninja -C out_$BOARD/Release chrome
}
function format(){
if [ -z "$1" ]
then git cl format "$1"
else git cl format
fi
}
function upload(){
git cl upload -T && git cl try
}
function sync(){
git pull && gclient sync -D && build chrome
}
function squash(){
git rebase -i origin/HEAD
}
function server(){
http-server -S -C cert.pem -o -a localhost -p 8000 -c-1
}
function pserver(){
python3 -m http.server 8080 -b 127.0.0.1
}
function addlog(){
python3 ~/shell_setup/add_log.py "$1"
}
alias refcheck='gn refs out/Default $1 --type=executable --all'