Files
lf/etc/lfcd.cmd
T
Jaehaks 26dc2f1ebd fix(lfcd.cmd) : cd to other drive / fix non-english encoding (#1772)
1) add `/d` to cd command for moving other drive
2) change code page number to read non-english output of `lf -print-last-dir` although current code page is 949
2024-07-08 10:13:42 +10:00

8 lines
233 B
Batchfile

@echo off
rem Change working dir in cmd.exe to last dir in lf on exit.
rem
rem You need to put this file to a folder in %PATH% variable.
chcp 65001 > nul 2>&1
for /f "usebackq tokens=*" %%d in (`lf -print-last-dir %*`) do cd /d %%d