Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "embedded": tips for a small(er) zsh installation size?
- X-seq: zsh-users 17587
- From: Axel Beckert <abe@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: "embedded": tips for a small(er) zsh installation size?
- Date: Fri, 18 Jan 2013 18:14:15 +0100
- 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
- In-reply-to: <CAHwuDSDbE4Kq5Q+S5hL1VEJr-WxSQFg6=0YrBZNP14S_yTurQA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: DeuxChevaux.org -- The Citroën 2CV Database
- References: <CAHwuDSDEw6u7gcApnVXiH8jjmtdVmZcJoWSWC+_k7uw6H_gnMA@mail.gmail.com> <CAHwuDSDbE4Kq5Q+S5hL1VEJr-WxSQFg6=0YrBZNP14S_yTurQA@mail.gmail.com>
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@xxxxxxxxxxxxxxx (Mail)
X See http://www.asciiribbon.org/ | abe@xxxxxxxxx (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author