-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalias
98 lines (90 loc) · 3.05 KB
/
alias
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
# General aliases
alias ip='curl icanhazip.com'
alias ll='ls -la'
alias path='echo $PATH | tr ":" "\n"'
# Git aliases
alias g='git'
alias ga='git add'
alias gap='git add -p'
alias gaa='git add .'
alias gb='git branch'
alias gc='git commit'
alias gca='git commit --amend'
alias gcm='git commit --message'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcom='git checkout main'
alias gd='git diff'
alias gda='git diff HEAD'
alias gi='git init'
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
alias glv='git log'
alias gld='git log --pretty=format:"%h %ad %s" --date=short --all'
alias gpr='git pull --rebase'
alias push='git push'
alias gr='git rebase'
alias gs='git status'
alias gss='git show'
alias gst='git stash'
alias gsa='git stash apply'
alias gsd='git stash drop'
alias gsl='git stash list'
alias gsp='git stash pop'
alias gsm='git stash push -m'
alias gbl='git branch'
alias gblr='git branch -r'
alias gbla='git branch -a'
alias gbc='git checkout -b'
alias gbd='git branch -d'
alias gblrlct='git fetch --prune && for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort'
alias guir='git update-index --assume-unchanged' # Make git assume a file is always unchanged. Useful when you need to add secrets to your dev env to work
alias guia='git update-index --no-assume-unchanged' # Make git see the changes in a file again
alias guil='git ls-files -v | grep "^h " | sed s/h\ //' # list the files that are assumed to be unchanged. The -v option returns all files but prefixes files that are assumed unchanged with a lower case 'h'
# Grunt aliases
alias grb='npx grunt build'
alias grm='npx grunt mocks'
alias grc='npx grunt connect:eesg'
alias grw='npx grunt watch'
# Node aliases
alias ndm='find . -name "node_modules" -type d -prune | xargs rm -rf'
# NPM aliases
alias ns='npm start'
alias nt='npm test'
alias ni='npm install'
alias nis='npm install --save'
alias nid='npm install --save-dev'
alias nu='npm uninstall'
alias nus='npm uninstall --save'
alias nud='npm uninstall --save-dev'
alias nupd='npm update'
alias nr='npm run'
alias nls='npm list'
alias nlsg='npm list --global --depth=0'
# Yarn aliases
alias yi='yarn install'
alias yb='yarn build'
alias ys='yarn start'
alias yt='yarn lint --fix && yarn test'
alias ya='yarn add'
alias yad='yarn add --dev'
alias yrm='yarn remove'
alias yu='yarn upgrade'
alias yr='yarn run'
alias yls='yarn list'
alias ylsg='yarn list --global --depth=0'
# Batect aliases
alias bb='./batect build'
alias but='./batect unit-test'
alias bit='./batect integration-test'
alias bsa='./batect start-app'
alias bs='./batect start'
alias brn='./batect run-nginx'
alias bsa='./batect start-auth'
alias bsh='./batect start-history'
alias bfl='./batect format && ./batect lint'
# function to set the title of an iTerm tab
function title {
echo -ne "\033]0;"$*"\007"
}
# find the process thats intefearing with the bluetooth mouse
alias mouse='ioreg -l -d 1 -w 0 | grep SecureInput'