forked from sha1n/profile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
58 lines (57 loc) · 1.61 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# profile self update
alias update_profile="git -C $SHA1N_PROFILE_HOME pull --recurse-submodules origin $(git -C $SHA1N_PROFILE_HOME branch --show-current)"
#
# directory shortcuts
#
alias home='cd $HOME'
alias cod='cd $HOME/code'
alias gos='cd $(go env GOPATH)/src/github.com/sha1n'
# main task conventions
alias main='cd -P $HOME/main'
alias start='source ./.start'
#
# command shortcuts
#
#
alias grep='grep --color=always'
# ls
alias ll='ls -lh'
alias la='ls -lha'
# git
alias pull_master='git pull --rebase --autostash origin master'
alias status='git status'
alias reset='git reset'
alias add='git add'
alias commit='git commit'
alias stash='git stash'
alias push='git push origin $(git branch --show-current)'
alias pull='git pull origin $(git branch --show-current)'
alias pulls='git submodule update --recursive --remote'
alias cloner='git clone --recurse-submodules'
alias gil='git log --pretty=format:"%C(red)%as%C(reset) %C(green)%h%C(reset)%C(auto)%d%C(reset) %s - %C(cyan)[%ce]%C(reset)"'
# gh
alias pr='gh pr create'
alias prs='gh pr list'
alias myprs='gh pr list -A sha1n'
alias issues='gh issue list'
alias releases='gh release list'
alias clone='gh repo clone'
# make
alias mt='make test'
# yarn/npm
alias yi='yarn install'
alias yt='y run test'
alias yit='y run test:it'
alias yut='y run test:unit'
alias yb='y run build'
alias yc='y run clean'
alias npl='npm run lint -s'
# vagrant
alias vu='vagrant up'
alias vh='vagrant halt'
# docker
alias dcc='docker kill $(docker ps -q) && docker rm -vf $(docker ps -qa)'
alias dvm='source dvm.sh'
# bazel
alias bazel='bazel_with_disk_cache_guard'
alias bazel_rm='sudo rm -rf ~/.cache/bazel'