-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.aliases
60 lines (48 loc) · 1.54 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
# Terminal Behavior
alias aliax="vim ~/.aliases"
alias zshx="vim ~/.zshrc"
alias vimx="vim ~/.vimrc"
alias pryx="vim ~/.pryrc"
alias csd="cs ~/Desktop"
alias csf="cs ~/workspace/flow-tech-services"
alias csl="cs ~/Documents/learning"
function cs () {
cd "$@" && ls
}
# Use Homebrew Installed Vim
alias vim="$(brew --prefix vim)/bin/vim"
# Deckset for slides
alias deck="open -a 'Deckset'"
alias mac="open -a 'MacDown'"
# Docker
alias dcomp="docker compose"
# Rails
alias be="bundle exec"
# Heroku
alias hp='heroku accounts:set personal'
alias hw='heroku accounts:set work'
# Linting
alias berm='bundle exec rubocop-changes -b main'
alias rca="git diff HEAD^ --name-only --diff-filter=d -m **/*.rb ':!db/*schema.rb' | xargs bundle exec rubocop -a"
alias erba="git diff HEAD^ --name-only --diff-filter=d -m **/*.erb | xargs bundle exec erblint -a"
# Python
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
# Static Site Tools
alias ss='python -m SimpleHTTPServer'
alias mm='middleman'
# Weather
alias weather="curl wttr.in/'Austin'"
# Fancy Git Log
alias glog="git log --pretty=format:\"%Cgreen%h$Creset %Cblue%ad%Creset %s%C(yellow)%d%Creset %Cblue[%an]%Creset\" --graph --date=short"
# SSH Raspberry Pi
alias pi1="ssh [email protected]"
alias pi2="ssh [email protected]"
alias pi3="ssh [email protected]"
alias pi4="ssh [email protected]"
alias pi5="ssh [email protected]"
alias pi6="ssh [email protected]"
alias pi7="ssh [email protected]"
alias pi8="ssh [email protected]"
export ERL_AFLAGS="-kernel shell_history enabled"