-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliases
82 lines (78 loc) · 3.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
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
#---------------------------------------#
# Navigate #
#---------------------------------------#
alias ......=../../../../..
alias .....=../../../..
alias ....=../../..
alias ...=../..
alias 1='cd -1'
alias 2='cd -2'
alias 3='cd -3'
alias 4='cd -4'
alias 5='cd -5'
alias 6='cd -6'
alias 7='cd -7'
alias 8='cd -8'
alias 9='cd -9'
alias f='open -a Finder ./'
#---------------------------------------#
# zshmarks #
#---------------------------------------#
alias g="jump"
alias d="deletemark"
alias p=showmarks
alias s=bookmark
#---------------------------------------#
# Git #
#---------------------------------------#
alias ga='git add'
alias gaa='git add --all'
alias gb='git branch'
alias gc='git commit'
alias gca='git commit -a'
alias gcam='git commit -am'
alias gcb='git checkout -b'
alias gcf='git config --list'
alias gco='git checkout'
alias gcount='git shortlog -sn'
alias gd='git diff --color'
alias genpw='openssl rand -base64 32'
alias gf='git fetch'
alias gl='git pull'
alias glg='git log --stat --color'
alias glgg='git log --graph --color'
alias glgga='git log --graph --decorate --all'
alias glgm='git log --graph --max-count=10'
alias glgp='git log --stat --color -p'
alias glo='git log --oneline --decorate --color'
alias glog='git log --oneline --decorate --color --graph'
alias glogme='glog --author='\''Amit Dhamu'\'
alias glol='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit'
alias glola='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --all'
alias gm='git merge'
alias gp='git push'
alias gss='git status -s'
alias gst='git status'
alias gundo='git reset HEAD^'
#---------------------------------------#
# macOS #
#---------------------------------------#
alias show_hidden='defaults write com.apple.finder AppleShowAllFiles -boolean true && killall Finder'
alias hide_hidden='defaults write com.apple.finder AppleShowAllFiles -boolean false && killall Finder'
alias show_finder_statusbar="defaults write com.apple.finder ShowStatusBar -bool true;killall Finder"
alias hide_finder_statusbar="defaults write com.apple.finder ShowStatusBar -bool false;killall Finder"
alias dl_history="sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'"
alias delete_dl_history="sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'"
#---------------------------------------#
# Misc #
#---------------------------------------#
alias grep='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}'
alias localip='ipconfig getifaddr en0'
alias l='ls -lah'
alias la='ls -lAh'
alias ll='ls -lh'
alias ls='ls -G'
alias tree='tree -C'
alias zedit='vim ~/.zshrc'
alias zsrc='source ~/.zshrc'
alias cat='bat'