Skip to content

ian-tsien/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Other configuration

Except for the configure files listed in the repository, there are some other tools worth being marked down.

zsh + oh-my-zsh

  1. Install zsh and make it the default shell:
sudo apt install zsh
chsh -s $(which zsh)
  1. Install oh-my-zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  1. Configure zsh:
  • Change the theme to agnoster by modifying ZSH_THEME="agnoster".

  • Add autosuggestions:

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

# Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc)
plugins=(
    # other plugins...
    zsh-autosuggestions
)
  • Remove hostname by setting prompt_context() {}.

  • Install and add zsh-syntax-highlighting to your zsh file like the following:

echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
  1. Others:

    Better to touch a new zsh configure file named .zshenv to store other plugins' configuration, such as export=.., etc. Leave the .zshrc alone with configuration not referring to any other tools other than zsh itself and some OS options, such as making a proxy setting.

About

My personal configuration files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages