forked from lewagon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
50 lines (44 loc) · 1.94 KB
/
aliases
File metadata and controls
50 lines (44 loc) · 1.94 KB
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
# Get External IP / local IPs
alias ip="curl ipinfo.io/ip"
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
alias speedtest="wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
# Quickly serve the current directory as HTTP
# alias serve='ruby -run -e httpd . -p 8000' # Or python -m SimpleHTTPServer :)
# shell
alias set-title='DISABLE_AUTO_TITLE=true && title'
# docker
alias d="docker"
alias d-c="docker-compose"
alias dcup="docker-compose up"
alias dcdown="docker-compose down"
alias dexec="docker exec"
alias dps="docker ps"
alias dpsa="docker ps -a"
alias dpsf="docker ps -f"
alias dpsft='dps --format "table{{.ID}}\t{{.Names}}\t{{.Status}}"'
# git
alias gclm='git checkout $(git_main_branch) && git pull origin $(git_main_branch) && git pull vanilla $(git_main_branch) && git push origin $(git_main_branch)'
alias gsta='git stash'
alias gltag='git fetch && git tag --sort=-version:refname | grep -E "[0-9]+.[0-9]+.[0-9]+" | head -n 1'
alias gfw='git flow'
alias gfwf='git flow feature'
alias gfwfs='git flow feature start'
alias gfwff='git flow feature finish'
alias gfwh='git flow hotfix'
alias gfwr='git flow release'
alias gt='git tag'
alias gpo='git push origin'
alias gpoc='git push origin $(git_current_branch)'
alias gpocfl='git push origin $(git_current_branch) --force-with-lease'
# npm
alias npmrmi='rm -rf node_modules package-lock.json && npm i'
# apps
alias vsc='code .'
alias att='atom .'
alias atts='atom ~'
alias atpl='apm list --installed --bare'
alias chrome='open -a "Google Chrome"'
alias edex='z edex-ui && npm run start'
alias dev='z keycloak && docker compose up -d && z authorization && docker-compose up -d && z aos-app && docker-compose up -d mongo redis minio-server minio-client && MODE="dev" pm2 start ecosystem.config.js --only "aos-server-app, aos-api-authorization"'
alias pms='MODE="dev" pm2 start ecosystem.config.js --only '
alias pmr='MODE="dev" pm2 reload ecosystem.config.js --only '