-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.cmd
65 lines (54 loc) · 1.37 KB
/
init.cmd
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
@echo off
:: Init script for cmd.exe
:: Configures the command line with my settings
:: Add mongo to path
:: Requires Mongo version 4.0.X (https://www.mongodb.com/download-center/enterprise)
:: set PATH=%path%;"%programfiles%\MongoDB\Server\4.0\bin\"
:: Add variable for dotfiles path
set dotfiles=%userprofile%\Code\dotfiles
:: Bin aliases
set PATH=%path%;%dotfiles%\bin\
:: Navigation aliases
doskey ~=cd %userprofile%
doskey ..=cd ..\$*
doskey ...=cd ..\..\$*
doskey ....=cd ..\..\..\$*
:: Shortcuts
doskey dl=cd %userprofile%\Downloads
doskey dt=cd %userprofile%\Desktop
doskey db=cd "%userprofile%\Dropbox (Hutson Inc)"
doskey c=cd %userprofile%\Code
doskey dot=cd %dotfiles%
:: Generic aliases
doskey cat=type $*
doskey clear=cls
doskey cp=copy $*
doskey e.=explorer .
doskey ls=dir $*
doskey man=help $*
doskey mv=move $*
doskey pwd=cd
doskey rm=del $*
:: Git aliases
doskey ga=git add $*
doskey ga.=git add . $*
doskey gb=git branch $*
doskey gc=git commit $*
doskey gcm=git commit -m $*
doskey gco=git checkout $*
doskey gmm=git merge master $*
doskey gpl=git pull $*
doskey gpu=git push $*
doskey gpuu=git push -u $*
doskey gpuuo=git push -u origin $*
doskey gs=git status -s $*
:: NPM aliases
doskey nr=npm run $*
doskey nrd=npm run dev
doskey nrs=npm run start
doskey nrt=npm run test
:: VS Code aliases
doskey c.=code .
doskey code.=code .
:: Other
doskey weather=curl wttr.in $*