-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathaliases
47 lines (40 loc) · 1.05 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
# Unix
alias cat="bat"
alias tlf="tail -f"
alias ln='ln -v'
alias mkdir='mkdir -p'
alias ...='../..'
alias l='ls'
alias ll='ls -al'
alias lh='ls -Alh'
alias -g G='| grep'
alias -g M='| less'
alias -g L='| wc -l'
alias -g ONE="| awk '{ print \$1}'"
alias e="$EDITOR"
alias v="$VISUAL"
alias help="tldr"
# Bundler
alias b="bundle"
# Tests and Specs
alias t="ruby -I test"
# Rails
alias migrate="rake db:migrate db:rollback && rake db:migrate"
alias m="migrate"
alias rk="rake"
alias s="rspec"
# Pretty print the path
alias path="echo $PATH | tr -s ':' '\n'"
# Other aliases
eval $(thefuck --alias)
eval $(hub alias -s)
# Kubernetes and Gcloud
alias k="kubectl"
alias kctx="kubectx"
alias kns="kubens"
alias gc="gcloud"
# Global Docker Compose
alias services="docker-compose -p global -f ~/.docker-compose.global.yml ps"
alias services-up="docker-compose -p global -f ~/.docker-compose.global.yml up -d"
alias services-down="docker-compose -p global -f ~/.docker-compose.global.yml down"
alias services-logs="docker-compose -p global -f ~/.docker-compose.global.yml logs"