From 7f0caf06833130727b238a2afeb58f3b5096a34c Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 17 Jan 2018 08:02:50 -0500 Subject: Update Windows default command to print relative paths (#1200) --- src/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/constants.go') diff --git a/src/constants.go b/src/constants.go index 0629d054..f3033840 100644 --- a/src/constants.go +++ b/src/constants.go @@ -59,7 +59,7 @@ func init() { } else if os.Getenv("TERM") == "cygwin" { defaultCommand = `sh -c "command find -L . -mindepth 1 -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-"` } else { - defaultCommand = `dir /s/b` + defaultCommand = `for /r %P in (*) do @(set "_curfile=%P" & set "_curfile=!_curfile:%__CD__%=!" & echo !_curfile!)` } } -- cgit v1.2.3