Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/shells
In directory vz-cvs-3.sog:/tmp/cvs-serv7666
Added Files:
zsh-templates.info
Log Message:
these still work
--- NEW FILE: zsh-templates.info ---
Package: zsh-templates
Version: 2.0.1
Revision: 1
# Source: http://zsh-templates-osx.googlecode.com/files/%n-%v.tgz
Source: http://%n-osx.googlecode.com/files/%n-osx_%v.tgz
Source-MD5: 50b441a5bb3391cc6e5d8eb33663b327
SourceDirectory: %n-osx
#SourceDirectory: %n-%v
Depends: macosx, zsh (>= 4.3.4-1) | zsh-multibyte (>= 4.3.4-1)
License: GPL
Maintainer: W. G. Scott <[email protected]>
Description: Template files for zsh customization
PatchScript: <<
#!/bin/zsh -efx
perl -pi.bak -e 's|# ZDOT="/Library/init/zsh"|
ZDOT="%p/share/zsh/templates/Library/init/zsh"|g' etc/zshenv
perl -pi.bak -e 's|/sw|%p|g' **/* 2>/dev/null
perl -pi.bak -e 's|ALT_SWPREFIX|%p|g' Library/init/zsh/zshrc.d/001_fink_env.zsh
rm -f **/*.bak
<<
CompileScript:<<
true
<<
InstallScript:<<
#!/bin/zsh -efx
mkdir -p %i/share/zsh/templates/Library/init/zsh
mkdir -p %i/share/zsh/templates/Applications
#mkdir -p %i/share/zsh/templates/Library/LaunchAgents
mkdir -p %i/share/zsh/templates/etc
mkdir -p %i/etc/zsh
#
# This isn't needed in the fink version, and interferes:
# rm -f Library/init/zsh/environment.xtal
cp -rf Library/init/zsh/* %i/share/zsh/templates/Library/init/zsh/.
#perl -pi.bak -e 's|/Library/init|%p/share/zsh/templates/Library/init|g'
Library/LaunchAgents/*
#rm -f Library/LaunchAgents/*.bak
#cp -rf Library/LaunchAgents/* %i/share/zsh/templates/Library/LaunchAgents/.
cp -rf Applications/* %i/share/zsh/templates/Applications/.
cp etc/zsh* %i/share/zsh/templates/etc/.
#
# I'm not sure how to handle this, but this avoids clobbering
# files that the user may have installed manually.
if [[ -f %p/etc/zsh/zshenv ]];then
mv -f %p/etc/zsh/zshenv %p/etc/zsh/zshenv.old_$$
fi
if [[ -f %p/etc/zsh/zshrc ]];then
mv -f %p/etc/zsh/zshrc %p/etc/zsh/zshrc.old_$$
fi
#
ln -s %p/share/zsh/templates/etc/zshenv %i/etc/zsh/zshenv
ln -s %p/share/zsh/templates/etc/zshrc %i/etc/zsh/zshrc
#
# This is causing some reported problems, so eliminate this for now:
# mkdir -p %i/etc/profile.d
#
# cat >| %i/etc/profile.d/%n.sh << eof-1
#
# if [[ -n \$ZSH_NAME ]];then
# if [[ -z \$(/bin/launchctl list | grep zsh.fink.completion ) ]];then
# /bin/launchctl load
%p/share/zsh/templates/Library/LaunchAgents/zsh.fink.completion.plist
# fi
# if [[ -z \$(/bin/launchctl list | grep zsh.open.completion ) ]];then
# /bin/launchctl load
%p/share/zsh/templates/Library/LaunchAgents/zsh.open.completion.plist
# fi
# fi
#
#
# eof-1
#
# echo "# This file is an empty place-holder. " >| %i/etc/profile.d/%n.csh
#
# chmod a+x %i/etc/profile.d/%n.*sh
<<
PostInstScript: <<
chmod a+x
%p/share/zsh/templates/Library/init/zsh/zshrc.d/local-functions/darwin/whatsnew
echo ""
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "Please issue \"fink describe zsh-templates\" for instructions."
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo ""
sleep 5
<<
DescDetail: <<
===============================================================================
These files work "out of the box" but you must set this up in one of two ways:
Method 1:
==========
Make %p/bin/zsh your default user shell. To do so, you must edit the file
/etc/shells and add to it the line
%p/bin/zsh
Then issue the following command:
chsh -s /sw/bin/zsh
Method 2:
==========
Make /bin/zsh your default shell. To do this, issue
chsh -s /bin/zsh
Then create the following two symbolic links:
sudo ln -s %p /share/zsh/templates/etc/zshenv /etc/.
sudo ln -s %p /share/zsh/templates/etc/zshrc /etc/.
===============================================================================
===============================================================================
A wiki for zsh-templates has now been created, describing
what is in the package in detail. It can be visited at the
following URL: http://tinyurl.com/y3r4kp
The command "configure_zsh_templates" will be issued automatically
when an interactive shell is started for the first time. A GUI will
assist the user in fine-tuning the configuration automatically.
===============================================================================
Modifications and enhancements of zsh distributed templates
were written by Gary Kerbaugh, W. G. Scott, Wataru Kagawa
and several others. Completion functions _open, _fink,
_hdiutils, _defaults and their dependencies were written by
Motoi Washida and will be included by default in future versions
of zsh. Some of these (_open, _fink) have been modified to work
faster.
More details are available here: http://tinyurl.com/y3r4kp
===============================================================================
<<
HomePage: http://tinyurl.com/y3r4kp
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs