summaryrefslogtreecommitdiffstats
path: root/src/constants.go
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-01-17 08:02:50 -0500
committerJunegunn Choi <junegunn.c@gmail.com>2018-01-17 22:02:50 +0900
commit7f0caf06833130727b238a2afeb58f3b5096a34c (patch)
tree4d27065fc38c6d1c597a4084bf4325f86c1275d7 /src/constants.go
parent7f606665cbfa2334057d0c5be75b98e2b4e06016 (diff)
Update Windows default command to print relative paths (#1200)
Diffstat (limited to 'src/constants.go')
-rw-r--r--src/constants.go2
1 files changed, 1 insertions, 1 deletions
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!)`
}
}