-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.local
41 lines (34 loc) · 1.14 KB
/
aliases.local
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
alias cld='cd ~/commonlit/commonlit && tat'
# Git
alias gaa='git add -p'
alias gca='git ca'
alias gcms='git commit -m'
alias gcm='git commit -v'
alias gd='git diff'
alias gl='git l'
alias gp='git push'
alias gpu='git pull'
alias gra='command git rebase --abort'
alias grc='command git rebase --continue'
# Postgres
alias pgstart='brew services start postgresql'
alias pgstop='brew services stop postgresql && rm -f /usr/local/var/postgres/postmaster.pid'
alias pgrestart='pgstop && pgstart'
# Ruby
alias bex='nocorrect bundle exec'
alias bu='bundle update'
alias irb='irb --readline -r irb/completion'
# Rails
alias rc='rails console'
alias taild='touch log/development.log && tail -f log/development.log'
alias tailt='touch log/test.log && tail -f log/test.log'
# Folder navigation
alias dotf='cd $HOME/dotfiles-local'
alias dotu='cd $HOME/dotfiles'
# Utility stuff
# Don't use shell's built-in 'time' command
alias time='/usr/bin/time'
alias timestamp='date +%Y%m%d%H%M%S'
# Don't forward TERM to ssh
# https://medium.com/@dubistkomisch/how-to-actually-get-italics-and-true-colour-to-work-in-iterm-tmux-vim-9ebe55ebc2be
alias ssh='TERM=xterm-256color ssh'