Last active
July 8, 2021 11:59
-
-
Save ridvanaltun/19187a1c00963c2ce0693bd4cca2d316 to your computer and use it in GitHub Desktop.
User Aliases for Cmderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;= @echo off | |
;= rem Call DOSKEY and use this file as the macrofile | |
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0% | |
;= rem In batch mode, jump to the end of the file | |
;= goto:eof | |
;= Common directories | |
desktop=cd /d "%HOME%"\Desktop" | |
home=cd /d "%HOME%" | |
;= Common Programs | |
subl=sublime_text $* | |
vsc=code $* | |
merge=sublime_merge $* | |
;= Trying to be Linux? | |
ls=ls --show-control-chars -F --color $* | |
cat=type $* | |
ip=ipconfig | |
rm=rmdir /S $*$Tdel $* | |
mkdir=mkdir $1$Tcd $1 | |
touch=copy nul $* > nul | |
clear=cls | |
pwd=cd | |
which=where $* | |
sudo=runas /noprofile /user:Administrator $* | |
history=type "%CMDER_ROOT%\config\.history" | |
alias=doskey /MACROS:ALL | |
;= Vary | |
e.=explorer . | |
e..=explorer . & exit | |
unalias=alias /d $1 | |
vi=vim $* | |
hosts=nano %SYSTEMDRIVE%\Windows\System32\drivers\etc\hosts | |
;= Git | |
gl=git log --oneline --all --graph --decorate $* | |
gitconfig=nano %HOME%\.gitconfig | |
;= Windows Defender | |
defender="%ProgramFiles%\Windows Defender\MpCmdRun.exe" | |
scan="%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File $1 | |
defender_log=cat %HOME%\AppData\Local\Temp\MpCmdRun.log | |
defender_signature_update="%ProgramFiles%\Windows Defender\MpCmdRun.exe" -SignatureUpdate | |
defender_update="%ProgramFiles%\Windows Defender\MSASCui.exe" -Update | |
defender_quick_scan="%ProgramFiles%\Windows Defender\MSASCui.exe" -QuickScan | |
defender_full_scan="%ProgramFiles%\Windows Defender\MSASCui.exe" -FullScan | |
;= Cmderr | |
reload=cls$Tcmd cur_console | |
new=cmd -new_console:s$* | |
cmderr=cd /d "%CMDER_ROOT%" | |
cmderr_aliases=nano %CMDER_ROOT%\config\user_aliases.cmd | |
;= Node Programs | |
delete-node-modules=npx npkill | |
;= Virtualenv | |
activate=Scripts\activate.bat | |
;= Kubectl | |
kc=kubectl $* | |
;= To boot BIOS | |
bios=shutdown /fw /r | |
;= Windows Shutdown set seconds | |
st=shutdown /s /t $* | |
;= Shutdown abort | |
sta=shutdown /a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment