-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.cmd
61 lines (52 loc) · 1.45 KB
/
aliases.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
@echo off
@REM Common directories
doskey cdadmin = cd C:\Users\Admin
doskey cdrepos = cd C:\Users\Admin\source\00_Repos
doskey cdclink = cd C:\Program Files (x86)\clink
doskey cdcfg = cd C:\Users\Admin\AppData\Local\clink
@REM Trying to be linux
doskey ls = dir $*
doskey ll = dir /w $*
doskey pwd = chdir
doskey cp = copy $*
doskey mv = move $*
doskey rm = del $*
doskey cat = type $*
doskey touch = if not exist $1 (copy nul $1)
@REM ip
doskey ip = ipconfig
doskey shownetworks = netsh wlan show profiles
doskey shownetwork = netsh wlan show profile name=$*
doskey shownetworkpass = netsh wlan show profile name=$* key=clear
@REM nodejs
doskey nrd = npm run dev
doskey nrb = npm run build
doskey nrs = npm run start
doskey nr = npm run $*
doskey ni = npm install $*
@REM github cli
doskey ghlist = gh repo list
doskey ghview = gh browse
doskey ghclone = gh repo clone $*
doskey ghnew = gh repo create $* --private
doskey ghnewp = gh repo create $* --public
doskey ghrm = gh repo delete $*
doskey ghrename = gh repo rename $*
@REM github copilot cli
doskey ghe = gh copilot explain $*
doskey ghs = gh copilot suggest $*
@REM git
doskey gst = git status
doskey ga = git add $*
doskey gc = git commit -m $*
doskey gp = git push
doskey gpf = git push -f
doskey gl = git pull
doskey glog = git log
doskey gurl = git ls-remote --get-url origin
@REM useless ?
doskey quit = exit
doskey clear = cls
@REM Windows power
doskey preboot = shutdown -r -t $*
doskey pabort = shutdown -a