aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGabriele Bozzola <sbozzolator@gmail.com>2020-06-05 18:26:36 -0700
committerGabriele Bozzola <sbozzolator@gmail.com>2020-06-13 07:55:46 -0700
commit16555ff655962fc03b650652cb8d9efec788347e (patch)
treefc1b588995d74ad273816f3eb0281bf8c3c04e02 /README.md
parent5b19c8356575232e9ab38e7186173656d15b8f14 (diff)
Add comments on prompt identification
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index edb3726..509fc81 100644
--- a/README.md
+++ b/README.md
@@ -555,8 +555,8 @@ On most GNU/Linux systems, you can read current directory from `/proc`:
(interactive)
(when vterm--process
(let* ((pid (process-id vterm--process))
- (dir (file-truename (format "/proc/%d/cwd" pid))))
- (setq-local default-directory dir))))
+ (dir (file-truename (format "/proc/%d/cwd/" pid))))
+ (setq default-directory dir))))
```
A possible application of this function is in combination with `find-file`:
```emacs-lisp