forked from mscoutermarsh/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
56 lines (48 loc) · 1.36 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
alias s="osascript ~/dotfiles/SpotifyControl/SpotifyControl.scpt"
alias sn="osascript ~/dotfiles/SpotifyControl/SpotifyControl.scpt next"
alias sp="osascript ~/dotfiles/SpotifyControl/SpotifyControl.scpt prev"
# Now playing: Cher - Believe
alias sb="osascript ~/dotfiles/SpotifyControl/SpotifyControl.scpt start spotify:track:2goLsvvODILDzeeiT4dAoR"
# Unix
alias tlf="tail -f"
alias ln='ln -v'
alias mkdir='mkdir -p'
alias ...='../..'
alias l='ls'
alias ll='ls -al'
alias lh='ls -Alh'
alias -g G='| grep'
alias -g M='| less'
alias -g ONE="| awk '{ print \$1}'"
alias e="$EDITOR"
alias v="$VISUAL"
# because typing is hard
alias bim="vim"
# fix for passing params to rake tasks
alias rake='noglob rake'
# git
alias g='git'
alias gs='git status -sb'
# copy the current branch name
alias gcb='git rev-parse --abbrev-ref HEAD | pbcopy'
# because i make this typo a lot
alias ggs='gs'
# open a pull request, requires Hub to be installed (hub.github.com)
alias gpr='git pull-request'
# Bundler
alias b="bundle"
alias bi="bundle install"
alias be="bundle exec"
# because i make this typo a lot
alias kbundle="bundle"
# Rubygems
alias gi="gem install"
# Rails
alias rk="rake"
alias rc="bin/rails c"
# Config Files
alias vimrc="vim ~/.vimrc"
alias vimrcbundles="vim ~/.vimrc.bundles"
alias zshrc="vim ~/.zshrc"
# Include custom aliases
[[ -f ~/.aliases.local ]] && source ~/.aliases.local