[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wrong default-directory in shell buffer
From: |
Lars Ingebrigtsen |
Subject: |
Re: Wrong default-directory in shell buffer |
Date: |
Tue, 17 May 2022 21:27:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Matthias Meulien <orontee@gmail.com> writes:
> Do you have any implementation of the OSC7 trick to share?
>From comint.el:
(defun comint-osc-directory-tracker (_ text)
"Update `default-directory' from OSC 7 escape sequences.
This function is intended to be included as an entry of
`comint-osc-handlers'. You should moreover arrange for your
shell to print the appropriate escape sequence at each prompt,
say with the following command:
printf \"\\e]7;file://%s%s\\e\\\\\" \"$HOSTNAME\" \"$PWD\"
This functionality serves as an alternative to `dirtrack-mode'
and `shell-dirtrack-mode'."
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: plz -> curl?, (continued)
- Re: plz -> curl?, Jonas Bernoulli, 2022/05/21
- Wrong default-directory in shell buffer, Matthias Meulien, 2022/05/15
- Re: Wrong default-directory in shell buffer, Stefan Monnier, 2022/05/15
- Re: Wrong default-directory in shell buffer, Matthias Meulien, 2022/05/16
- Re: Wrong default-directory in shell buffer, Matthias Meulien, 2022/05/16
- Re: Wrong default-directory in shell buffer, Visuwesh, 2022/05/17
- Re: Wrong default-directory in shell buffer, Matthias Meulien, 2022/05/17
- Re: Wrong default-directory in shell buffer,
Lars Ingebrigtsen <=
- Re: Wrong default-directory in shell buffer, Matthias Meulien, 2022/05/17
- Re: Wrong default-directory in shell buffer, Lars Ingebrigtsen, 2022/05/17
- Re: [ELPA] New package: plz, Richard Stallman, 2022/05/13
- Re: [ELPA] New package: plz, Adam Porter, 2022/05/13
Re: [ELPA] New package: plz, Stefan Monnier, 2022/05/11