Skip to content

Commit 6dbcc3e

Browse files
Merge pull request #50 from alessandrofajr/dev
Dev
2 parents 19b99c6 + b64f371 commit 6dbcc3e

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
File renamed without changes.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: post
3+
title: Meu setup no terminal zsh
4+
permalink: /blog/setup-zsh/
5+
date: 2025-10-25
6+
updated: 2025-10-25
7+
tags:
8+
- tech
9+
---
10+
11+
Sessões de pair coding quase sempre rendem muitos frutos, desde o entendimento de um modo de resolver determinado problema a pequenas utilidades do dia a dia.
12+
13+
Num dia desses, por exemplo, notei que o Terminal do meu colega [André Martins](https://www.linkedin.com/in/andre-martins-3a9520201/) tinha funções interessantes, como um autocompletar bem esperto.
14+
15+
Foi assim que descobri da existência do [Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh), um framework para o terminal **zsh**. Aqui, um registro da minha configuração atual:
16+
17+
1. No Mac, o zsh costuma vir como o terminal padrão, mas no Linux talvez seja necessário [instalá-lo](https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH);
18+
2. Com o zsh já configurado, instalei o Oh My Zsh:
19+
20+
```
21+
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
22+
```
23+
3. Depois, baixei quatro plugins, responsáveis pela mágica do autocompletar e outras facilidades:
24+
- [autosuggesions plugin](https://github.com/zsh-users/zsh-autosuggestions)
25+
26+
`git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions`
27+
28+
- [zsh-syntax-highlighting plugin](https://github.com/zsh-users/zsh-syntax-highlighting)
29+
30+
`git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting`
31+
32+
- [zsh-fast-syntax-highlighting plugin](https://dev.to/zeromeroz/(https://github.com/zdharma/fast-syntax-highlighting))
33+
34+
`git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting`
35+
36+
- [zsh-autocomplete plugin](https://github.com/marlonrichert/zsh-autocomplete)
37+
38+
`git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete`
39+
4. Depois de baixados, é hora de incluí-los no arquivo de configuração, rodando `nano ~/.zshrc` e editando a seção de plugins:
40+
```
41+
plugins=(
42+
git
43+
zsh-autosuggestions
44+
zsh-syntax-highlighting
45+
fast-syntax-highlighting
46+
zsh-autocomplete
47+
)
48+
```
49+
5. Pra deixar tudo funcionando, basta reinicar o ambiente com `source ~/.zshrc`

0 commit comments

Comments
 (0)