View previous topic :: View next topic |
Author |
Message |
zapman n00b
Joined: 25 Nov 2002 Posts: 4
|
Posted: Mon Nov 25, 2002 7:20 pm Post subject: zsh build issues. |
|
|
I emerged zsh (4.0.6) and am having some issues.
When I build strait from source, my shell init files work just fine.
When I use the gentoo version, the 'compinit' shell function that enables programable completion lists the function definitions of all functions it finds in my $fpath.
This is hideously verbose. It also doesn't enable the programable completion
The same init files work perfectly with source built zsh. The only difference is the fpath (when using /bin/zsh it points to /usr/share/zsh/$ZSH_VERSION/functiions, when using source built, it points to /usr/local/share/zsh/$ZSH_VERSION/functions)
The relevant part of my .zshrc is:
fpath=( /usr/share/zsh/$ZSH_VERSION/functions )
zstyle ':completion:*' completer _expand _complete _approximate
zstyle ':completion:*' glob 1
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' '' 'r:|[._-]=** r:|=**'
zstyle ':completion:*' max-errors 1
zstyle :compinstall filename '/home/jprice/.zshrc'
[[ -z $fpath[(r)$_compdir] ]] && fpath=($fpath $_compdir)
autoload -U compinit
compinit
# End of lines added by compinstall
does anyone have some ideas what the difference between gentoo's zsh, and source are? |
|
Back to top |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
Posted: Mon Nov 25, 2002 11:33 pm Post subject: |
|
|
You shouldn't have to define fpath unless you have personal functions that you want to load.
try taking out this:
fpath=( /usr/share/zsh/$ZSH_VERSION/functions )
or changing it to:
fpath=( $fpath /usr/share/zsh/$ZSH_VERSION/functions )
In my .zshrc I just have:
fpath=($fpath ~/.zfunc)
for func in $^fpath/*(N-.x:t); autoload $func
export fpath
typeset -U fpath
autoload -U compinit
compinit
zstyle '*' hosts $hosts
hth,
sa |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|