1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 15:09:25 +00:00

Compare commits

..

3 Commits

Author SHA1 Message Date
9852150123 except SunOS only 2014-03-02 00:11:26 +01:00
a8c872671c Replace RE with glob expressions 2014-03-01 21:13:31 +01:00
0ff0ece5e2 completion:**:users ignored-patterns more robust
Calculates ignored users at runtime by extracting them from
passwd database and considering all users with UID < 100
(on Solaris systems) or UID < 500 (everywhere else).

By my timings, this doesn't make it any noticably slower.
2014-03-01 02:32:23 +01:00
3 changed files with 7 additions and 19 deletions

View File

@ -99,14 +99,13 @@ zstyle -e ':completion:*:hosts' hosts 'reply=(
)'
# Don't complete uninteresting users...
zstyle ':completion:*:*:*:users' ignored-patterns \
adm amanda apache avahi beaglidx bin cacti canna clamav daemon \
dbus distcache dovecot fax ftp games gdm gkrellmd gopher \
hacluster haldaemon halt hsqldb ident junkbust ldap lp mail \
mailman mailnull mldonkey mysql nagios \
named netdump news nfsnobody nobody nscd ntp nut nx openvpn \
operator pcap postfix postgres privoxy pulse pvm quagga radvd \
rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs '_*'
zstyle ':completion:*:*:*:users' ignored-patterns nobody nobody4 noaccess '_*' \
$([[ "$OSTYPE" = SunOS ]] && uid_min=100 || uid_min=500
IFS=:
while read -r user pass uid remainder; do
[[ "$user" != (\#*|root) ]] && ((uid < uid_min)) && echo $user
done </etc/passwd
)
# ... unless we really want to.
zstyle '*' single-ignored show

View File

@ -30,10 +30,6 @@ Perlbrew
An alternative to the above is to use [Perlbrew][2], which allows for the
management of multiple, isolated Perl installations in the home directory.
You can specify the perlbrew location so the environment is automatically loaded.
zstyle ':prezto:module:perl:perlbrew' location '/path/to/perlbrew'
Aliases
-------

View File

@ -29,13 +29,6 @@ if [[ "$OSTYPE" == darwin* ]]; then
unset perl_path
unset cache_file
# Perlbrew
zstyle -s ':prezto:module:perl:perlbrew' location '_perlbrew_root'
if [[ -s "${_perlbrew_root}/etc/bashrc" ]]; then
export PERLBREW_ROOT="${_perlbrew_root}"
source "${_perlbrew_root}/etc/bashrc"
fi
fi
#