-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_aliases
More file actions
109 lines (105 loc) · 3.84 KB
/
Copy path.bash_aliases
File metadata and controls
109 lines (105 loc) · 3.84 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias desktop='cd ~/Desktop'
alias downloads='cd ~/Downloads'
alias documents='cd ~/Documents'
alias codes='cd ~/Codes'
# Shortcuts
alias compress='tar -zcvf'
alias extract='tar -zxvf'
alias install='sudo apt install'
alias v='nvim'
alias s='sudo'
alias px='ps aux'
alias fn='find -name'
alias p='ping 8.8.8.8'
alias fs='stat -f "%z bytes"'
alias fn='find ./ -name'
alias myip='curl ip.appspot.com'
alias mysqlc='mysql -u root -p'
alias mysqldumpc='mysqldump -u root -p'
# Defaults
alias rm='rm -v'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# GIT
alias g='git'
alias ga='git add'
alias gap='git add -p'
alias gd='git diff'
alias gds='git diff --staged'
alias gc='git commit -m'
alias gs='git status -s'
alias gp='git push origin master'
alias master='git checkout master'
alias dev='git checkout dev'
alias back='git checkout -'
alias checkout='git checkout'
alias co='git checkout'
alias branch='git branch'
alias branches='git branch -a'
alias new='git checkout -b'
alias commit='git commit'
alias wip='git commit -m "WIP"'
alias fetch='git fetch -p'
alias fetchall='git fetch -all'
alias pull='git pull --rebase --prune --verbose --no-ff --no-commit --no-stat --autostash'
alias pullme='git fetch -p upstream; git pull --rebase --prune --verbose --no-ff --no-commit --no-stat --autostash upstream master'
alias push='git push origin HEAD'
alias forcepush='git push --force-with-lease origin HEAD'
alias undopush='git push -f origin HEAD^:master'
alias stash='git stash -k -u'
alias stashall='git stash --include-untracked'
alias pop='git stash pop'
alias undo='git reset --soft HEAD^'
alias unstage='git reset HEAD'
alias unstageall='git reset HEAD .'
alias amend='git commit --amend --no-edit'
alias amende='git commit --amend'
alias standup='git --no-pager log --all --no-merges --oneline --date="relative" --since="yesterday"'
alias mystandup='standup --author=(git config user.name)'
alias glp='git log -p'
alias log='git log -p --decorate'
alias gl='git log --graph --decorate --abbrev-commit --pretty=format:"%C(auto,yellow)%h%Creset %C(auto,bold)%s%Creset %Cgreen(%ar)%Creset%Cred%d%Creset %C(auto,dim)%aN%Creset" -n 20'
alias rmbranch='git branch -D'
alias rmibranch='git push origin :'
alias merged='git branch --merged | grep -v "\*"'
alias deleted='git log --diff-filter=D --summary | grep delete'
alias glf='git log -- ' # file path
alias rmmerged='git branch --merged | grep -v "\*" | xargs -n 1 git branch -D'
alias allmerged='git branch --merged -r | grep -v "\*"'
alias notmerged='git branch --no-merged'
alias show-ref='git show-ref'
alias show='git show'
alias news='git log ..master'
alias fixup='git commit --fixup'
alias rebaseme='git rebase master --autostash'
alias rebase='git rebase --autostash'
alias autorebase='git rebase -i --autosquash --autostash'
alias merge='git merge'
alias mergenoff='git merge --no-ff'
alias revert='git revert'
alias addremote='git remote add'
alias remotes='git remote -v'
alias prune='git remote prune origin'
alias copy='fpp -c "echo \$F | pbcopy"'
alias edit='fpp -c subl'
alias hmm='subl ./'
alias repo="open https://github.(git config remote.origin.url | cut -f2 -d. | tr ':' /)"
alias clone='hub clone'
alias browse='hub browse'
alias issues='hub browse -- issues'
alias commits='hub browse -- commits'
alias wiki='hub browse -- wiki'
alias pullrequest='hub pull-request'
alias pull-request='hub pull-request'
alias newfiles='git whatchanged --diff-filter=A'
alias contributors='git shortlog -sn --no-merges'
# PHP
alias ptree='tree -d -L 10 -I "vendor|tests|test|node_modules" --matchdirs'
alias pdoc='/usr/bin/phpdoc -d ./ -t ./docs -i "docs/*,vendor/*"'
alias phpxdebug='php -dxdebug.remote_autostart=1 -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 -dxdebug.remote_connect_back=0'