Created
November 18, 2017 17:13
-
-
Save sys9kdr/f0c440ac6fc5d2fff4cd4a7f00110740 to your computer and use it in GitHub Desktop.
cmderのコマンドをラップしてチルダをいい感じにするやつ。
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 usage | |
rem doskey=tildewrap command $* | |
echo %* | find "~" >NUL | |
if not ERRORLEVEL 1 goto TILDE | |
:CHAR | |
call %* | |
goto EOF | |
:TILDE | |
set tildedest=%* | |
call %%tildedest: ~= %USERPROFILE%%% | |
goto EOF | |
:EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
案B? gotoを終了時に使わないやつ