[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh)
From: |
Michael Albinus |
Subject: |
Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh) |
Date: |
Tue, 25 May 2021 09:38:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Jason Kim <jason.kim@revtera.com> writes:
Hi Jason,
> From bbdd6f2665c70e15ccc23f48d664eb6e20df7fa6 Mon Sep 17 00:00:00 2001
> From: Jason Kim <jason.kim@revtera.com>
> Date: Mon, 24 May 2021 10:04:54 -0700
> Subject: [PATCH] Auto-cd support for lisp/shell.el
>
> Added a new defcustom shell-has-auto-cd (default: nil) for
> users with shells like zsh that can auto-cd into a directory
> without typing in the "cd" command.
> If set to true and the command is a directory, then
> shell-directory-tracker processes the command (which happens to be a
> directory) as if it were prepended with "cd"
FTR, the commit message shall have a ChangeLog style.
> +(defcustom shell-has-auto-cd nil
> + "If non-nil, `shell-mode' handles implicit \"cd\" commands.
> +Implicit \"cd\" is changing the directory if the command is a directory.
> +You can make this variable buffer-local to change it, per shell-mode instance
> +Useful for shells like zsh that has this feature."
> + :type 'boolean
> + :group 'shell-directories
> + :version "28")
This should be "28.1".
> Thanks!
> -Jason
Best regards, Michael.
- Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/05
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Michael Albinus, 2021/05/06
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Eli Zaretskii, 2021/05/06
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/07
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/07
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Eli Zaretskii, 2021/05/15
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/24
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/24
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh),
Michael Albinus <=
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/27
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Michael Albinus, 2021/05/07
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Eli Zaretskii, 2021/05/08
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/08
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Eli Zaretskii, 2021/05/08
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/08
- Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh), Jason Kim, 2021/05/08