-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
64 lines (53 loc) · 1.42 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
#!/bin/bash
alias copy="clip.exe"
# be nice
alias please=sudo
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# GIT STUFF
# Undo a `git push`
alias undopush="git push -f origin HEAD^:master"
# SHORTCUTS
#git aliases
alias g="git"
alias gc='git checkout'
alias ghd="github"
alias gl="git log --oneline --all --graph --decorate"
alias gr='[ ! -z `git rev-parse --show-cdup` ] && cd `git rev-parse --show-cdup || pwd`'
alias gs="git status"
alias gsa="git stash apply"
alias gsl="git stash list"
alias gsp="git stash pop"
alias gspu="git stash push"
alias gss="git stash save"
alias gptags="git push && git push --tags"
# npm aliases
alias ns='npm search'
alias np='npm prune'
alias nig='npm install -g'
alias nug='npm update -g'
alias ni='npm install'
alias nid='npm install --save-dev'
alias nu='npm update'
alias nrm='npm rm'
alias start='npm start'
alias dev='npm run dev'
alias watch='npm run watch'
alias build='npm run build'
alias deploy='npm run deploy'
alias publish='npm run publish'
alias format='npm run format'
alias validate='npm run validate'
alias lint='npm run lint'
alias slint='npm run lint:styles'
alias ncus='ncu --dep=prod,dev'
alias ncup='ncu -ui --dep=prod,dev'
alias t='npm test'
alias tc='npm run test:coverage'
alias tw='npm run test:watch'