Skip to content

lucasmartinseti/lmzsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install and config Zsh

Install dependencies

macOS
brew install zsh zsh-completions ruby rbenv git
gem install colorls
Linux (Debian e Ubuntu)
sudo apt install -y zsh ruby ruby-dev git curl build-essential libssl-dev zlib1g-dev libreadline-dev fontconfig
sudo gem install colorls
wget -P ~/.local/share/fonts https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/JetBrainsMono.zip
cd ~/.local/share/fonts
unzip JetBrainsMono.zip
rm JetBrainsMono.zip
fc-cache -fv
Install all SO
Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Configure PowerLevel10k theme
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Close and open terminal to se changes.
Configure zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/lukechilds/zsh-nvm.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-nvm
Configure Zsh
git clone https://gitlab.com/lucasmartinseti/lmzsh.git ~/.config/lmzsh
ln -s -f ~/.config/lmzsh/zshrc ~/.zshrc
ln -s -f ~/.config/lmzsh/zsh-colorls ~/.oh-my-zsh/custom/plugins/zsh-colorls
ln -s -f ~/.config/lmzsh/bin ~/.zshfn
ln -s -f ~/.config/lmzsh/config_ssh.d/config ~/.ssh/config
Create ssh key and config
Generate ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ~/.ssh/id_rsa_exemplo
ssh-add ~/.ssh/id_rsa_exemplo
Configure ssh-agent

Include an file ~/.config/lmzsh/config_ssh.d/config with:

Host glexemplo
  HostName gitlab.com
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_rsa_exemplo

About

Config ZSH with plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages