zsh-users
 help / color / mirror / code / Atom feed
* In search of an existing feature to turn it off...
@ 2016-07-31  3:30 Meino.Cramer
  2016-07-31  3:48 ` Lawrence Velázquez
  0 siblings, 1 reply; 6+ messages in thread
From: Meino.Cramer @ 2016-07-31  3:30 UTC (permalink / raw)
  To: zsh-users


Hi,

since I shoot myself into my feets several times now I want to switch
of a certain feature of zsh...unfortunately I dont know its name so
searching becomes a little difficult...

Syppose the following directory structure

/home/user
/home/user/bin +
/home/user/data  *
/home/user/data/scripts  #
/home/user/data/scripts/bin 


I am here "*" - accidentally - and thinking I woyld be here "#".

I do a 

    cd bin

I will be beamed to here "+"

I would preferr to get an error like
"No such file or directory." instead of being beamed to any other
place which also called "bin"

What feature do I have to switch off for this?

Thank you very much in advance for any help!
Best regards,
Meino







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: In search of an existing feature to turn it off...
  2016-07-31  3:30 In search of an existing feature to turn it off Meino.Cramer
@ 2016-07-31  3:48 ` Lawrence Velázquez
       [not found]   ` <20160731035442.GB4656@solfire>
  0 siblings, 1 reply; 6+ messages in thread
From: Lawrence Velázquez @ 2016-07-31  3:48 UTC (permalink / raw)
  To: Meino.Cramer; +Cc: zsh-users

> On Jul 30, 2016, at 11:30 PM, Meino.Cramer@gmx.de wrote:
> 
> Syppose the following directory structure
> 
> /home/user
> /home/user/bin +
> /home/user/data  *
> /home/user/data/scripts  #
> /home/user/data/scripts/bin 
> 
> 
> I am here "*" - accidentally - and thinking I woyld be here "#".
> 
> I do a 
> 
>    cd bin
> 
> I will be beamed to here "+"

Do you have anything in cdpath?

    % typeset cdpath
    cdpath=(  )

vq


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: In search of an existing feature to turn it off...
       [not found]   ` <20160731035442.GB4656@solfire>
@ 2016-07-31  5:02     ` Lawrence Velázquez
       [not found]       ` <20160731051308.GD4656@solfire>
  0 siblings, 1 reply; 6+ messages in thread
From: Lawrence Velázquez @ 2016-07-31  5:02 UTC (permalink / raw)
  To: meino.cramer; +Cc: zsh-users

> On Jul 30, 2016, at 11:54 PM, meino.cramer@gmx.de wrote:
> 
>> Lawrence Velázquez <vq@larryv.me> [16-07-31 05:52]:
>> 
>> Do you have anything in cdpath?
> 
> nope...
> 
> /home/user>typeset cdpath
> cdpath=(  )
> 
> mc

what does "setopt" tell you?

    % setopt
    combiningchars
    extendedhistory
    incappendhistorytime
    interactive
    login
    monitor
    promptsubst
    shinstdin
    zle

vq

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: In search of an existing feature to turn it off...
       [not found]       ` <20160731051308.GD4656@solfire>
@ 2016-07-31  5:21         ` Lawrence Velázquez
       [not found]           ` <20160731061817.GE4656@solfire>
  0 siblings, 1 reply; 6+ messages in thread
From: Lawrence Velázquez @ 2016-07-31  5:21 UTC (permalink / raw)
  To: Meino.Cramer; +Cc: zsh-users

Let's keep this on the list.

> On Jul 31, 2016, at 1:13 AM, Meino.Cramer@gmx.de wrote:
> 
>> Lawrence Velázquez <vq@larryv.me> [16-07-31 07:12]:
>> 
>> what does "setopt" tell you?
> 
> Is get this:
> autocd
> noautoparamslash
> autopushd
> autoresume
> nobeep
> nobgnice
> braceccl
> cdablevars
> chaselinks
> noclobber
> extendedglob
> extendedhistory
> globdots
> globsubst
> nohistbeep
> histexpiredupsfirst
> histignoredups
> histignorespace
> histreduceblanks
> histverify
> incappendhistory
> interactive
> interactivecomments
> longlistjobs
> mailwarning
> monitor
> printeightbit
> printexitvalue
> pushdignoredups
> pushdminus
> pushdsilent
> pushdtohome
> rcquotes
> sharehistory
> shinstdin
> zle

CDABLE_VARS might be your culprit. From the zshoptions(1) man page:

   CDABLE_VARS (-T)
          If the argument to a cd command (or an implied cd with the
          AUTO_CD option set) is not a directory, and does not begin with
          a slash, try to expand the expression as if it were preceded by
          a `~' (see the section `Filename Expansion').

vq

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: In search of an existing feature to turn it off...
       [not found]           ` <20160731061817.GE4656@solfire>
@ 2016-07-31  6:42             ` Lawrence Velázquez
  2016-08-18 20:53               ` Daniel Hahler
  0 siblings, 1 reply; 6+ messages in thread
From: Lawrence Velázquez @ 2016-07-31  6:42 UTC (permalink / raw)
  To: Meino.Cramer; +Cc: zsh-users

> On Jul 31, 2016, at 2:18 AM, Meino.Cramer@gmx.de wrote:
> 
>> Lawrence Velázquez <vq@larryv.me> [16-07-31 07:32]:
>> 
>> CDABLE_VARS might be your culprit. From the zshoptions(1) man page:
>> 
>>   CDABLE_VARS (-T)
>>          If the argument to a cd command (or an implied cd with the
>>          AUTO_CD option set) is not a directory, and does not begin with
>>          a slash, try to expand the expression as if it were preceded by
>>          a `~' (see the section `Filename Expansion').
> 
> I unset that and it seems to do what should.

Great.

vq


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: In search of an existing feature to turn it off...
  2016-07-31  6:42             ` Lawrence Velázquez
@ 2016-08-18 20:53               ` Daniel Hahler
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Hahler @ 2016-08-18 20:53 UTC (permalink / raw)
  To: Meino.Cramer; +Cc: zsh-users


[-- Attachment #1.1: Type: text/plain, Size: 306 bytes --]

>>> CDABLE_VARS might be your culprit. From the zshoptions(1) man page:>>>
>> I unset that and it seems to do what should.

You might want to look into the CDPATH setting though.

It is awesome when set to e.g.

  cdpath=(~/projects ~/src ~/Vcs ~/.dotfiles/vim/neobundles).


Cheers,
Daniel.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-18 20:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-31  3:30 In search of an existing feature to turn it off Meino.Cramer
2016-07-31  3:48 ` Lawrence Velázquez
     [not found]   ` <20160731035442.GB4656@solfire>
2016-07-31  5:02     ` Lawrence Velázquez
     [not found]       ` <20160731051308.GD4656@solfire>
2016-07-31  5:21         ` Lawrence Velázquez
     [not found]           ` <20160731061817.GE4656@solfire>
2016-07-31  6:42             ` Lawrence Velázquez
2016-08-18 20:53               ` Daniel Hahler

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).