-
Notifications
You must be signed in to change notification settings - Fork 7
/
aliases
executable file
·39 lines (33 loc) · 942 Bytes
/
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
# Unix
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"
# Git
alias grbiam='git rebase -i --autosquash master'
# Bundler
alias b="bundle"
# Tests and Specs
alias t="ruby -I test"
# Rails
alias m="migrate"
alias s="rspec"
alias rs="spring stop && rails s"
alias rc="spring stop && rails c"
# Pretty print the path
alias path="echo $PATH | tr -s ':' '\n'"
# 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"