forked from thoughtbot/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
36 lines (30 loc) · 747 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
# Unix
alias ll="ls -al"
alias ln="ln -v"
alias mkdir="mkdir -p"
alias e="$EDITOR"
alias v="$VISUAL"
# Bundler
alias b="bundle"
# Rails
alias migrate="bin/rails db:migrate db:rollback && bin/rails db:migrate db:test:prepare"
alias s="rspec"
# Pretty print the path
alias path='echo $PATH | tr -s ":" "\n"'
# git
alias gap="git add -p"
alias gpp="git pull --rebase && git push"
alias gst="git status"
alias gup="git fetch origin && git rebase origin/master"
alias gst="git status"
alias gci="git commit"
alias gd="git diff"
# docker
alias dcr="docker-compose run"
alias dcb="docker-compose build"
alias dcu="docker-compose up"
alias dc="docker-compose"
# Include custom aliases
if [[ -f ~/.aliases.local ]]; then
source ~/.aliases.local
fi