-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
66 lines (51 loc) · 1.46 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
59
60
61
62
63
64
65
66
# ZSH
alias reload!=". $HOME/.zshrc"
# Unix
alias tlf="tail -f"
alias ln='ln -v'
alias mkdir='mkdir -p'
alias ...='../..'
alias l='ls'
alias ll='ls -lhG'
alias lh='ls -AlhG'
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"
# git
alias gci="git pull --rebase && rake && git push"
# Bundler
alias b="bundle"
alias be="bundle exec"
# Tests and Specs
# alias t="ruby -I test"
# Rubygems
alias gi="gem install"
alias giv="gem install -v"
# Rails
alias migrate="docker-compose run app bin/rake db:migrate db:rollback && docker-compose run app bin/rake db:migrate db:test:prepare"
alias rk="docker-compose run app bin/rake"
alias s="docker-compose run app bin/rspec"
# Ionic
alias ion="ionic"
# Dockery stuff
alias fig="docker-compose"
alias dbuild="docker-compose build"
alias dapp="docker-compose run --rm app"
alias kube="kubectl"
# Hashicorp
alias v="vagrant"
alias tf="terraform"
# Pretty print JSON from file
alias json="python -mjson.tool"
# alias ping="prettyping"
# Postgres
alias pg_start="pg_ctl start --pgdata /usr/local/var/postgres/"
alias pg_stop="pg_ctl stop --pgdata /usr/local/var/postgres/"
[[ -x /usr/local/bin/nvim ]] && alias vim="/usr/local/bin/nvim"
[[ $(uname) == 'Linux' && -f ~/.aliases.linux ]] && source ~/.aliases.linux
[[ $(uname) == 'Darwin' && -f ~/.aliases.mac ]] && source ~/.aliases.mac
# Include custom aliases
[[ -f ~/.aliases.local ]] && source ~/.aliases.local