-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
101 lines (92 loc) · 2.48 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Homebrew
alias bwi='brew install'
alias bws='brew search'
alias bwh='brew home'
alias bwc='brew cask install'
alias bwr='brew uninstall'
alias bwu='brew update \
&& brew upgrade \
&& brew cleanup'
# Get local IP
alias local-ip='ipconfig getifaddr en0'
# Save Alfred Preferences
alias save-alfred-prefs='cp -r ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences ~/Desktop \
&& cp -r ~/Desktop/Alfred.alfredpreferences/ .alfred \
&& rm -rf ~/Desktop/Alfred.alfredpreferences \
&& echo 'Done ✨''
# NeoVim
alias nv='nvim'
alias nvc='nvimconf'
# npm & yarn
alias nr='npm run'
alias ni='npm install'
alias nrm='npm uninstall'
alias ns='npm run start'
alias nd='npm run dev'
alias nb='npm run build'
alias nt='npm run test'
alias y='yarn'
alias yi='yarn install'
alias yrm='yarn remove'
alias ys='yarn start'
alias yd='yarn dev'
alias yb='yarn build'
alias yt='yarn test'
alias ytt='yarn test:'
alias ybs='yarn build && yarn start'
# Git
alias g='git'
alias ga='git add'
alias gaa='git add .'
alias gb='git branch'
alias gbD='git branch -D'
alias gcom='git checkout master'
alias gco='git checkout'
alias gcom='git commit'
alias gcomm='git commit -m'
alias gd='git diff'
alias gst='git status'
alias gcp='git cherry-pick'
alias gloo='git log --oneline'
alias gp='git push'
alias grp='git fetch && git rebase origin/master && git push'
alias grmp='git fetch && git rebase origin/main && git push'
alias gp-='git push --no-verify'
alias gpu='git push -u origin'
alias gl='git pull'
alias gpom='git pull origin master'
alias gma='git merge --abort'
alias gf='git fetch'
alias gr='git rebase'
alias grm='git rebase origin/master'
alias grmm='git rebase origin/main'
alias grc='git rebase --continue'
alias gra='git rebase --abort'
alias gs='git stash'
alias gsp='git stash pop'
alias nvr='--no-verify'
# Docker
alias d='docker'
alias dpru='docker container prune'
alias dcu='docker-compose up'
alias dcub='docker-compose up --build'
# Personal
alias df='dotfiles'
alias dev='cd ~/dev'
alias tss='cd ~/dev/tsseract'
alias gol='cd ~/dev/gridoflove'
alias tapi='cd ~/dev/tsseract-api'
alias nvimconf='cd ~/.config/nvim'
alias nxs='cd ~/dev/nxs'
alias po='cd ~/dev/inapps-purchasing-fe'
alias ia='cd ~/dev/ia-eux'
alias dl='cd ~/Downloads'
alias dotfiles='/usr/bin/git --git-dir=/Users/jem/.dotfiles/ --work-tree=/Users/jem'
alias jus='npx jest --updateSnapshot'
# Shorts
alias hm='cd ~'
alias cls='clear'
alias xx='exit'
# Python
alias py='python3'
alias pm='python manage.py'