-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zsh_alias.tmpl
22 lines (19 loc) · 1.03 KB
/
dot_zsh_alias.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## docker
export HOME_BLOG={{ .chezmoi.homeDir }}/workspace/rammusxu.github.io
alias docker-hexo='docker run --rm -e GIT_EMAIL="comte_ken@hotmail.com" -e GIT_NAME="Rammus Xu" -v "/Users/rammus/.ssh:/root/.ssh" -v ${HOME_BLOG}:/blog rammusxu/docker-hexo'
alias hexo='docker run -d --name hexo -p 4000:4000 -v ${HOME_BLOG}:/blog rammusxu/docker-hexo'
alias docker-debug="docker run -it --rm -v $PWD:/app alpine:3.11 sh"
alias docker-debug-image="docker run -it --rm -v $PWD:/app --entrypoint sh "
## Alias
alias k="kubectl"
alias kyaml="kubectl --dry-run=client -o yaml"
alias ll="ls -lat"
alias git-clean='git branch --merged | egrep -v "(^\*|master)" | xargs git branch -d'
alias git-pr='git push -u origin HEAD && gh pr create -f'
alias git-pr-fork='git push -u rammus HEAD && gh pr create -f'
alias git-master='git checkout master && git pull'
alias git-new-branch='f_git_checkout() {git fetch; git checkout -b $1 origin/master}; f_git_checkout'
## Alias - library
alias python="python3"
## Alias - aws
alias aws-whoami="aws sts get-caller-identity"