#oh-my-zsh #zsh

Como instalar o ZSH e o Oh-my-zsh no Debian 9

por Pedro Resende em 21/02/2019 às 10:30:52

Como instalar o ZSH e o Oh-my-zsh no Debian 9

Hoje vou-vos deixar aqui um pequeno tutorial a explicar como podem instalar o ZSH (Z Shell) no terminal.  Para quem não sabe o que é o o ZSH, devem saber que se trata de uma shell um pouco diferente do tão bem conhecido bash, consola por defeito instalada na maioria dos sistemas linux.

Vamos começar por actualizar os repositórios de pacotes de linux


# apt update<br />

De seguida vamos instalar os pacotes necessários para ter o zsh


# apt install zsh curl git

Uma vez instalados os pacotes, temos de definir o zsh, como a shell predefinida, para temos temos de executar


chsh -s $(which zsh) &lt;- Zsh Default shell

<br /><em>- </em>chsh -s $(which zsh) &lt;- Zsh Default shell<br /><em>- </em>sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"<br /><em>- </em>logout and login

Vamos agora instalar o oh-my-zsh, que se trata de temas para a shell.


sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Por fim, para activar a nova shell basta-nos fazer logout e depois login, para fazerem logout podem premir as teclas Ctrl + D.

Depois de fazerem login terão o zsh pronto a funcionar.

Pedro Resende

Pedro Resende

With over two decades of experience as a Full Stack Developer, I have journeyed through diverse facets of software development. Commencing with the creation of compact institutional websites, I progressed to crafting portals for insurance brokers and contributed to substantial projects for renowned companies such as MS Amlin. My expertise expanded further by delving into product development for Advertiser Kwanko and collaborating with startups in their pivotal ramp-up stages. Notably, I've been involved in architecting extensive e-commerce solutions for global enterprises like Wayfair.

I currently serve as the Tech Lead at Emergn, contributing to the establishment and advancement of the Strategyzer client.