changeset 654:17e4bd5926d2

Prevent current directory to be of WSL style, like /mnt/c, when "e" is called without arguments.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 06 Sep 2020 12:36:54 +0300
parents 2503f7226fe1
children 29cce9076921
files emacs/e
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/emacs/e	Thu Mar 26 17:25:24 2020 +0200
+++ b/emacs/e	Sun Sep 06 12:36:54 2020 +0300
@@ -40,6 +40,9 @@
 fi
 read os </proc/sys/kernel/osrelease || :
 if [[ "$os" == *Microsoft ]]; then
+  if [[ -z "$1" ]]; then
+    set .
+  fi
   exec emacsclient-w32.exe $args -- "$@"
 fi