mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 04:30:27 +01:00
22417: allow autocd with execute-as-is
This commit is contained in:
parent
1d25bdbe0c
commit
9491c3c754
2 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2006-04-11 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22417: Functions/MIME/zsh-mime-handler: also
|
||||
allow autocd to work and add *(/) to the default
|
||||
execute-as-is.
|
||||
|
||||
2006-04-11 Wayne Davison <wayned@users.sourceforge.net>
|
||||
|
||||
* 22415: Doc/Makefile.in: changed how we call install-info so that
|
||||
|
|
|
|||
|
|
@ -25,8 +25,11 @@
|
|||
# This note is mostly here so you can work out what I tried to do when
|
||||
# it goes horribly wrong.
|
||||
|
||||
local autocd
|
||||
[[ -o autocd ]] && autocd=autocd
|
||||
|
||||
emulate -L zsh
|
||||
setopt extendedglob cbases nullglob
|
||||
setopt extendedglob cbases nullglob $autocd
|
||||
|
||||
# We need zformat from zsh/zutil for %s replacement.
|
||||
zmodload -i zsh/zutil
|
||||
|
|
@ -51,7 +54,7 @@ local -a exec_asis
|
|||
# despite being called for interpretation by the mime handler.
|
||||
# Defaults to executable files, which ensures that they are executed as
|
||||
# they are, even if they have a suffix.
|
||||
zstyle -a $context execute-as-is exec_asis || exec_asis=('*(*)')
|
||||
zstyle -a $context execute-as-is exec_asis || exec_asis=('*(*)' '*(/)')
|
||||
|
||||
local pattern
|
||||
local -a files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue