-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaliases
50 lines (43 loc) · 1.3 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
# Utilities
alias r!='. ~/.zshrc'
alias mkdir='mkdir -p'
alias vi='vim'
alias l='ls'
alias ll='ls -l'
alias la='ls -al'
alias -g G='| grep'
alias -g M='| less'
#alias composer='docker run -u $(id -u):$(id -g) --rm -it -v $(pwd):/app -v ${COMPOSER_HOME:-$HOME/.composer}:/tmp composer'
# Docker
alias dc='docker compose -p $(project_name)'
compdef _docker_compose dc=docker compose
alias dce='docker compose -p $(project_name) exec'
compdef _docker_compose dce="docker compose exec"
alias dcb='docker compose -p $(project_name) build'
compdef _docker_compose dcb="docker compose build"
function docker-compose-shell () {
docker compose -p $(project_name) exec $1 bash
}
alias dcshell='docker-compose-shell'
compdef _docker_compose dcshell="docker compose exec"
alias dcup='docker compose -p $(project_name) up -d'
compdef _docker_compose dcup=docker compose
alias dclean="docker-clean"
alias cap='bundle exec cap'
# Git
alias g='git'
compdef _git g=git
alias gst='git status'
compdef _git gst=git-status
alias gc='git commit'
compdef _git gc=git-commit
alias gc!='git commit --amend --no-edit'
compdef _git gc!=git-commit
alias gap='git add --patch'
compdef _git gap='git add'
alias gaa='git add -AN'
compdef _git gaa='git add'
alias gp='git push'
compdef _git gp='git push'
alias gup='git pull'
compdef _git gup='git pull'