Instalação e configuração da zsh no Gentoo GNU/Linux
Existem muitas razões para gostar do Gentoo, e sua semelhança com o Unix de Berkeley é uma delas. A seguir irei descrever como deixar nosso Gentoo mais parecido ainda com o BSD, instalando, configurando e definindo a shell zsh (shell padrão do mundo UNIX/BSD) como padrão do sistema.
Instalação
Para instalar a zsh sob o Gentoo, precisaremos primeiramente instalar os pacotes app-shells/zsh (o próprio zsh) e app-shells/zsh-completion (scripts complementares da zsh).
Listagem de código 1.1: Instalando zsh
# emerge zsh zsh-completion
Entrando em zsh:
Quando você executar zsh pela primeira vez, verá a seguinte mensagem. Você poderá ignorar esse menu, pois criaremos nosso arquivo de inicialização mais tarde neste guia.
Listagem de código 1.2: Ignorando a configuração inicial
$ zsh
Listagem de código 1.1: Instalando zsh
# emerge zsh zsh-completion
Entrando em zsh:
Quando você executar zsh pela primeira vez, verá a seguinte mensagem. Você poderá ignorar esse menu, pois criaremos nosso arquivo de inicialização mais tarde neste guia.
Listagem de código 1.2: Ignorando a configuração inicial
$ zsh
This is the Z Shell configuration function for new users, zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~). This function can help you with a few settings that should
make your use of the shell easier.
You can:
(q) Quit and do nothing. The function will be run again next time.
(0) Exit, creating the file ~/.zshrc containing just a comment.
That will prevent this function being run again.
(1) Continue to the main menu.
--- Type one of the keys in parentheses --- q
Falou!!!