Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
zsh build issues.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
zapman
n00b
n00b


Joined: 25 Nov 2002
Posts: 4

PostPosted: Mon Nov 25, 2002 7:20 pm    Post subject: zsh build issues. Reply with quote

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
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Mon Nov 25, 2002 11:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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