gentoo今天的收获[原创]

[axlrose@ibmgentoo .bash_completion.d] $ ls -lh
总计 0
lrwxrwxrwx 1 root root 36 06-11 20:34 bitkeeper -> /usr/share/bash-completion/bitkeeper
lrwxrwxrwx 1 root root 34 06-11 20:34 eselect -> /usr/share/bash-completion/eselect
lrwxrwxrwx 1 root root 36 06-11 20:34 genkernel -> /usr/share/bash-completion/genkernel
lrwxrwxrwx 1 root root 33 06-11 20:34 genlop -> /usr/share/bash-completion/genlop
lrwxrwxrwx 1 root root 33 06-11 20:34 gentoo -> /usr/share/bash-completion/gentoo
lrwxrwxrwx 1 root root 30 07-05 11:50 git -> /usr/share/bash-completion/git
lrwxrwxrwx 1 root root 31 06-15 11:03 gvim -> /usr/share/bash-completion/gvim
lrwxrwxrwx 1 root root 30 07-23 20:22 mpc -> /usr/share/bash-completion/mpc
lrwxrwxrwx 1 root root 32 07-05 11:51 scrot -> /usr/share/bash-completion/scrot
lrwxrwxrwx 1 root root 37 06-11 20:34 subversion -> /usr/share/bash-completion/subversion
lrwxrwxrwx 1 root root 31 06-12 12:48 tree -> /usr/share/bash-completion/tree
lrwxrwxrwx 1 root root 32 06-11 20:34 unrar -> /usr/share/bash-completion/unrar
lrwxrwxrwx 1 root root 30 06-11 20:34 vim -> /usr/share/bash-completion/vim
[axlrose@ibmgentoo .bash_completion.d] $ pwd
/home/axlrose/.bash_completion.d

今天在看todotxt的ebuild的时候发现,
[axlrose@ibmgentoo .bash_completion.d] $ sudo eselect bashcomp list|grep todo
 [37]  todotxt
[axlrose@ibmgentoo .bash_completion.d] $ sudo eselect bashcomp enable todotxt
[axlrose@ibmgentoo .bash_completion.d] $ sudo eselect bashcomp list|grep todo
 [37]  todotxt *

[axlrose@ibmgentoo .bash_completion.d] $ ls -l
总计 0
lrwxrwxrwx 1 root root 36 06-11 20:34 bitkeeper -> /usr/share/bash-completion/bitkeeper
lrwxrwxrwx 1 root root 34 06-11 20:34 eselect -> /usr/share/bash-completion/eselect
lrwxrwxrwx 1 root root 36 06-11 20:34 genkernel -> /usr/share/bash-completion/genkernel
lrwxrwxrwx 1 root root 33 06-11 20:34 genlop -> /usr/share/bash-completion/genlop
lrwxrwxrwx 1 root root 33 06-11 20:34 gentoo -> /usr/share/bash-completion/gentoo
lrwxrwxrwx 1 root root 30 07-05 11:50 git -> /usr/share/bash-completion/git
lrwxrwxrwx 1 root root 31 06-15 11:03 gvim -> /usr/share/bash-completion/gvim
lrwxrwxrwx 1 root root 30 07-23 20:22 mpc -> /usr/share/bash-completion/mpc
lrwxrwxrwx 1 root root 32 07-05 11:51 scrot -> /usr/share/bash-completion/scrot
lrwxrwxrwx 1 root root 37 06-11 20:34 subversion -> /usr/share/bash-completion/subversion
lrwxrwxrwx 1 root root 34 07-31 18:24 todotxt -> /usr/share/bash-completion/todotxt
lrwxrwxrwx 1 root root 31 06-12 12:48 tree -> /usr/share/bash-completion/tree
lrwxrwxrwx 1 root root 32 06-11 20:34 unrar -> /usr/share/bash-completion/unrar
lrwxrwxrwx 1 root root 30 06-11 20:34 vim -> /usr/share/bash-completion/vim
[axlrose@ibmgentoo .bash_completion.d] $

以前用eselect bashcomp的时候没注意,原来是这么回事,在 ~/.bash_completion.d 目录下做ln -s ,看来此招跟rc-update类似

其二是在使用todotxt的ebuild的时候,发现这个overlay没在官网指点的里面,根据提示原来就这样就搞定了,试了一下里然行,因为这个overlay用的是git,速度飞快,下载速度看了一下,105K/s 我的是 1M的电信ADSL,知足了

  1. Install app-portage/laymanif you haven’t already.

  2. Edit /etc/layman/layman.cfg and add the following URL to the “overlays:” section: http://github.com/joshuar/ephemeral-gentoo-overlay/tree/master%2Foverlay.xml?raw=true

  3. Run: layman -L.

  4. Run: layman -a ephemeral.

  5. You should now be able to install packages from the overlay.

你可能感兴趣的:(#gentoo)