-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
43 lines (36 loc) · 1.02 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
# Unix
alias ll="ls -al"
alias ln="ln -v"
alias mkdir="mkdir -p"
alias e="$EDITOR"
alias v="$VISUAL"
alias ls='ls -Gh'
alias ll="ls -lahG"
alias myports="lsof -i -n -P | grep LISTEN"
# Misc
alias rm="trash" # just puts it in the trash
alias zshconfig="vim ~/.zshrc.local"
alias cat="ccat" # code coloring
alias weather='curl -4 http://wttr.in/'
# Bundler
alias b="bundle"
alias be="bundle exec"
# Rails
alias migrate="bundle exec rake db:migrate db:rollback && rake db:migrate db:test:prepare"
alias s="bundle exec rspec"
# Pretty print the path
alias path='echo $PATH | tr -s ":" "\n"'
# Git
alias gs="git status"
alias gs='git status'
alias gp='git pull'
alias ga='git add '
alias gaa='git aa'
alias gcm='git commit -m '
alias gl='git lg'
alias gd='git diff --color | sed -E "s/^([^-+ ]*)[-+ ]/\\1/" | less -r'
# Finding big things
alias find_big_files='find / -type f -size +10M -exec ls -lh {} \;'
alias find_big_folders='du -h . | sort -n -r | head -10'
# Include local aliases
[[ -f ~/.aliases.local ]] && source ~/.aliases.local