-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cmd
30 lines (26 loc) · 933 Bytes
/
.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
@echo off
rem This file configures win32 cmd.exe profile.
rem
rem Add the following, as a (String) value:
rem call %USERPROFILE%/.cmd
rem
rem to these registry keys:
rem HKEY_CURRENT_USER\Software\Microsoft\Command Processor\Autorun
rem HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Command Processor\Autorun
rem Aliases
doskey cd~=cd %USERPROFILE%
doskey cd..=cd ..
doskey cd...=cd ../..
doskey cd....=cd ../../..
doskey la=ls -la $*
doskey ll=ls -l $*
doskey gri=grep --color=auto -ri $*
doskey grep=grep --color=auto $*
doskey config=git --git-dir=%USERPROFILE%/.config.git --work-tree=%USERPROFILE% $*
doskey vi=nvim $*
doskey vim=nvim $*
doskey vimdiff=nvim -d $*
rem Requires ansicon or a terminal that supports ansi escapes.
prompt $E[0;34m$P$+$G$E[1;37m$S$_$$$S
rem Inject readline command processor (https://github.com/chrisant996/clink/releases)
"C:\Lib\clink\clink" inject --profile "%USERPROFILE%\.clink"