-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
90 lines (66 loc) · 2.67 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Unix
alias :q='exit'
alias mkdir='mkdir -p'
alias ll='ls -al'
alias e="$EDITOR"
alias v=nvim
# git
alias ga='git add'
alias gaa='git add -A'
alias gp='git push'
alias gd='git diff'
alias gc='git commit --verbose'
alias gcm="git commit -m"
alias safe="rake && git add -A && g commit -m"
alias amend='git commit --verbose --amend'
alias tackit='git commit --amend --no-edit'
alias ship="git add . && git commit -m 'In progress - green' && g push"
alias tls='tmux ls'
function tn() {
tmux new -s $1
}
function ta() {
tmux attach -t $1
}
# Bundler
alias b="bundle"
alias be="bundle exec"
alias y="yarn"
# Tests and Specs
alias t="tree -I 'vendor|node_modules|bower_components'"
# Rubygems
alias gi="gem install"
alias giv="gem install -v"
# Rails
alias migrate="rake db:migrate db:rollback && rake db:migrate && rake db:test:prepare"
alias m="migrate"
alias rk="rake"
alias s="heroku local"
alias fixdb="rm db/schema.rb; rake db:drop db:create:all db:migrate db:test:prepare"
alias d='cd ~/dotfiles'
alias h='heroku'
alias changeauthor='git commit --amend --author "Jason Draper<[email protected]>"'
alias reload!='. ~/.zshrc'
alias et="ember test"
alias weather="curl wttr.in"
# Phoenix
alias fly="mix do deps.get, development_seeds && iex -S mix phoenix.server"
alias undeployed='git fetch --multiple production origin && git log production/master..origin/master'
alias copy_prod_db='heroku pg:backups:capture -r production && heroku pg:backups:download -r production && pg_restore --verbose --clean --no-acl --no-owner -h localhost -d joydrive_dev latest.dump && rm -rf latest.dump'
alias todo="todoist"
alias to="todoist"
alias clipboard="xclip -selection clipboard"
alias ls='exa'
alias setcapslock='xmodmap -e "clear lock" && xmodmap -e "keycode 66 = Control_L" && xmodmap -e "add control = Control_L Control_R"'
alias music='/snap/bin/spotify --force-device-scale-factor=1.8 &|'
alias lime='lima'
alias less="bat --style=changes"
alias icat="kitty +kitten icat"
alias cleanbranches="git branch --merged >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches"
alias vscode="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
alias yacl='yalc'
alias update-nvim-nightly='asdf uninstall neovim nightly && asdf install neovim nightly'
# alias cop="git diff main --name-only | xargs ~/code/ezcater/eztilt/run bin/rubocop"
alias cop='git diff main --name-only --diff-filter=d | xargs bundle exec rubocop -a --force-exclusion .github/CODEOWNERS'
alias copcommit='git diff main --name-only --diff-filter=d| xargs bundle exec rubocop -a && gaa && g commit -m "👮"'
alias rspec_no_features="be rspec --exclude-pattern 'spec/features/**/*_spec.rb'"