Skip to content

hung-dt/zsh_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

zsh

ZSH configuration files

Preparation

Install zsh:

sudo apt-get update
sudo apt-get install zsh
zsh --version

Change shell:

chsh -s $(which zsh)

Close the current terminal and open a new one:

echo $SHELL

or

echo $0

Install patched fonts for dev

nerd-fonts

powerline fonts

sudo apt-get install fonts-powerline

zsh git-prompt

Follow this git-prompt guide

Customize the terminal

Color schemes with Gogh

Before using Gogh, need to install dconf-cli, uuid-runtime:

sudo apt install dconf-cli uuid-runtime

Clone Gogh:

git clone https://github.com/Mayccoll/Gogh

Install color scheme by:

cd Gogh/themes
./zenburn.sh #or whatever color scheme you want to use

For Gnome terminal you'll need to create a new Gnome Terminal profile, or else you'll get an error. From the Gnome Terminal Preferences, click the + button next to Profiles, enter a new profile name and click Create. After installing a new color scheme (which is added as a new profile for Gnome Terminal) using Gogh, you can delete this profile.

Some favorite color schemes: Brogrammer, Panda, Shaman, Vs Code Dark+

Fancy prompt with Powerlevel10k

Install manually:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

Configuration

On the first run, Powerlevel10k configuration wizard will ask you a few questions and configure your prompt. If it doesn't trigger automatically, type p10k configure. Configuration wizard creates ~/.p10k.zsh based on your preferences. Additional prompt customization can be done by editing this file. It has plenty of comments to help you navigate through configuration options.

References

About

ZSH configuration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages