zsh-users
 help / color / mirror / code / Atom feed
* Completion of list of executables
@ 2006-03-15  2:48 Meino Christian Cramer
  2006-03-15  2:56 ` Wayne Davison
  0 siblings, 1 reply; 3+ messages in thread
From: Meino Christian Cramer @ 2006-03-15  2:48 UTC (permalink / raw)
  To: david, zsh-users


Hi,

 I am a little confused...

 In my .zshrc I expanded PATH as follows:

 export PATH="$PATH:${HOME}/bin/."

 Later in .zshrc I load a file called .zsh.completion, which
 contains all completion related stuff (not that much in the moment).

 Now...

 When I -- for example -- type "b<TAB>" at the prompt, the completion
 system will suggest all executables starting with "b" to me...except 
 those, which can be found in ${HOME}/bin/.

 But: Typing such an executable's full name after the prompt followed
 by <RETUN> will execute that executable (hence the name :O).

 What did I so badly wrong here, that the completion system will
 ignore my bin at home ;O))) ??

   # The following lines were added by compinstall
   
   # for LS_COLORS completions
   zmodload zsh/complist
   
   # default is selection via menu
   zstyle ':completion:*:default' menu yes select
   
   # use LC_COLORS
   zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
   
   # use cacheing
   zstyle ':completion:*' use-cache on
   zstyle ':completion:*' cache-path ~/.zsh/cache
   
   # expand PID for kill-cmd
   zstyle ':completion:*:kill:*'   force-list always
   
   # default stuff
   zstyle ':completion:*' completer _expand _complete
   zstyle ':completion:*' expand suffix
   zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'l:|=* r:|=*'
   zstyle :compinstall filename '/home/mccramer/.zsh.completion'
   
   
   # initialisation
   autoload -U compinit
   compinit
   # End of lines added by compinstall

 Thank you very much in advance for anyy helpful reply to my question.

 Kind regards,
 Meino Cramer


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

* Re: Completion of list of executables
  2006-03-15  2:48 Completion of list of executables Meino Christian Cramer
@ 2006-03-15  2:56 ` Wayne Davison
  2006-03-15  3:11   ` Meino Christian Cramer
  0 siblings, 1 reply; 3+ messages in thread
From: Wayne Davison @ 2006-03-15  2:56 UTC (permalink / raw)
  To: Meino Christian Cramer; +Cc: david, zsh-users

On Wed, Mar 15, 2006 at 03:48:51AM +0100, Meino Christian Cramer wrote:
>  export PATH="$PATH:${HOME}/bin/."

Get rid of the trailing /. and completion should work fine:

   export PATH="$PATH:$HOME/bin"

..wayne..


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

* Re: Completion of list of executables
  2006-03-15  2:56 ` Wayne Davison
@ 2006-03-15  3:11   ` Meino Christian Cramer
  0 siblings, 0 replies; 3+ messages in thread
From: Meino Christian Cramer @ 2006-03-15  3:11 UTC (permalink / raw)
  To: wayned; +Cc: david, zsh-users

From: Wayne Davison <wayned@users.sourceforge.net>
Subject: Re: Completion of list of executables
Date: Tue, 14 Mar 2006 18:56:36 -0800

Hi,

> On Wed, Mar 15, 2006 at 03:48:51AM +0100, Meino Christian Cramer wrote:
> >  export PATH="$PATH:${HOME}/bin/."
> 
> Get rid of the trailing /. and completion should work fine:
> 
>    export PATH="$PATH:$HOME/bin"
> 
> ..wayne..
> 

Thanks a lot for your help ! :)

The only thing what will remain in my brain about this is (only
curiosity) the question: Why is "~/bin/." not working and works
"~/bin" correctly since "cd ~/bin/." also does the same as "cd ~/bin"
??? Isn't that a little inconsequent ? Or unlogical ? 
 
meino


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

end of thread, other threads:[~2006-03-15  3:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-15  2:48 Completion of list of executables Meino Christian Cramer
2006-03-15  2:56 ` Wayne Davison
2006-03-15  3:11   ` Meino Christian Cramer

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).