Skip to content

PochoDev-22/zsh-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

INSTALL AND CONFIGURATION ZSH IN ARCHLINUX

1. INSTALL ZSH

# for archlinux
sudo pacman -S zsh 

# for ubuntu | deb
sudo apt install zsh

2. MAKING SET YOUR DEFAUL SHELL

chsh -s /bin/zsh

# reboot after exec command

3. INSTALL OH MY ZSH

# Link: https://github.com/ohmyzsh/ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

4. INSTALL PLUGINS

# reference: https://gist.github.com/n1snt/454b879b8f0b7995740ae04c5fb5b7df

# autosuggestion
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

# syntax-highlighting)
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

# config .zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

5. INSTALL THEME SPACESHIP

# reference: https://spaceship-prompt.sh/getting-started/#Requirements

* git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
* ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

# set theme in .zshrc
ZSH_THEME="spaceship"

BONUS

# create config file
touch ~/.config/spaceship.zsh
  • add in new file
# Display time
SPACESHIP_TIME_SHOW=true

# Display username always
SPACESHIP_USER_SHOW=always
  • set new file in .zshrc
export SPACESHIP_CONFIG="$HOME/.config/spaceship.zsh"
  • not display icons, add in config file
SPACESHIP_PROMPT_ASYNC=false
  • padding in Xfce Terminal
VteTerminal, vte-terminal {
  padding: 15px 15px;  /* top/bottom , left/right */
}

About

For install and config zsh in your linux

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors