From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8336 invoked by alias); 18 Jan 2013 17:14:34 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17587 Received: (qmail 7725 invoked from network); 18 Jan 2013 17:14:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at sym2.noone.org does not designate permitted sender hosts) Date: Fri, 18 Jan 2013 18:14:15 +0100 From: Axel Beckert To: zsh-users@zsh.org Subject: Re: "embedded": tips for a small(er) zsh installation size? Message-ID: <20130118171415.GW15534@sym.noone.org> Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.32-5-xen-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.2.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.20 (2009-06-14) Hi, On Fri, Jan 18, 2013 at 11:54:11AM +0100, Francisco Borges wrote: > I created zsh package for OpenWrt. So far so good. I already have an "ipk" > file that installs and runs properly in my router. > > My package installs /bin/zsh and /usr/share/zsh/5.0.2/functions. > > Right now I am installing all completion functions but that is an overkill. > For instance, I really do not need "Completion/AIX" for one. Is there any > simple way to turn off the installation of these? Nice idea. I tried that with the Debian zsh package. Using the following sed oneliner helped to remove stuff very likely not needed on Debian: sed -e 's:Completion/\(AIX\|Darwin\|Solaris\|Cygwin\|Mandriva\|openSUSE\)/\*/\* ::g' -i config.modules But the gain in free disk space inside /usr/share/zsh was just about 5% as most of the disk space is needed for Completion/Unix. > Any other tips on shrinking installed size? I don't know, but depending on your installation it may help to just install the .zwc files and not the source and the .zwc files. As I have been told on IRC, it should suffice for running zsh to have the .zwc files instead of their source around. Then again, in my case the Unix.zwc is bigger than the Unix directory contents it's generated from, but I suspect a performance penalty if you just install the source instead of the .zwc files. :-) ncdu shows nice where the disk space is going to: --- /usr/share/zsh/functions/Completion -------------------------------- /.. 3.0MiB [ 33.9% ##########] Unix.zwc 2.3MiB [ 26.5% ####### ] /Unix 380.0KiB [ 4.2% # ] /Zsh 284.0KiB [ 3.1% ] /Base 256.0KiB [ 2.8% ] /Debian 252.0KiB [ 2.8% ] Base.zwc 248.0KiB [ 2.7% ] /X 244.0KiB [ 2.7% ] Linux.zwc 236.0KiB [ 2.6% ] Debian.zwc 220.0KiB [ 2.4% ] Zsh.zwc 212.0KiB [ 2.3% ] X.zwc 200.0KiB [ 2.2% ] /Linux 172.0KiB [ 1.9% ] Solaris.zwc 164.0KiB [ 1.8% ] /Solaris 76.0KiB [ 0.8% ] Darwin.zwc 76.0KiB [ 0.8% ] /BSD 68.0KiB [ 0.8% ] compinstall 64.0KiB [ 0.7% ] /Darwin 60.0KiB [ 0.7% ] BSD.zwc 52.0KiB [ 0.6% ] /Cygwin 48.0KiB [ 0.5% ] /AIX 44.0KiB [ 0.5% ] Redhat.zwc 36.0KiB [ 0.4% ] Cygwin.zwc 32.0KiB [ 0.4% ] Mandriva.zwc 28.0KiB [ 0.3% ] /Redhat 28.0KiB [ 0.3% ] /openSUSE 24.0KiB [ 0.3% ] /Mandriva 20.0KiB [ 0.2% ] openSUSE.zwc 16.0KiB [ 0.2% ] compinit 16.0KiB [ 0.2% ] AIX.zwc 8.0KiB [ 0.1% ] bashcompinit 8.0KiB [ 0.1% ] compaudit 4.0KiB [ 0.0% ] compdump Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.asciiribbon.org/ | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)