-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
49 lines (38 loc) · 1.01 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
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# Shortcuts
alias g="git"
alias vi='vim'
# ls
alias ls="exa -G"
alias ll='exa -ltr'
alias la="ls -lhAF --color=auto"
alias lsf='ls -l | fzf'
# ghq + fzf
alias repos='ghq list -p | fzf'
alias repo='cd $(repos)'
alias github='hub browse'
#diff
if [[ -x `which colordiff` ]]; then
alias diff='colordiff -u'
else
alias diff='diff -u'
fi
# Always enable colored `grep` output
alias grep='grep --color=auto'
# Google Chrome
alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome'
alias canary='/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary'
# Show Finder
alias show="open ."
# Print each PATH entry on a separate line
alias path='echo -e ${PATH//:/\\n}'
# git
alias gpush='git push origin HEAD'
# redis
alias redis='redis-server /usr/local/etc/redis.conf'