- JetBrains Nerd Font is required for the icons to work properly. You can download it from here or you can use whatever font you like just don't forget to change all the configuration files, I might automate this part in the future.
You can install fonts with the following command:
On MacOS:
brew install --cask font-jetbrains-mono-nerd-fontOn Linux:
wget YourLinkToFont
sudo unzip JetBrainsMono.zip -d /usr/share/fonts/JetBrainsNerdFont
sudo fc-cache -fv- Install packages, you don't need all of them, but most of them are required:
On MacOS:
# if you want to make a backup of currently installed packages
brew leaves > leaves.txt
# Required packages
brew install < leaves/leaves.txtOn Linux:
Note
It will depend on your package manager, but most of the packages are available on all Linux distributions.
You can use setup.sh to automatically backup and symlink configuration files. It will backup your current configuration:
- zsh files in the
$HOMEdirectory will be renamed tofileName.bakthey will only be renamed if they exist. - directories in the
$HOME/.config/that interfere with the symlinking configuration will be renamed todirName.bak. - file
.zshenvwill be created in the$HOMEdirectory with the contentZDOTDIR=$HOME/.config/zsh.
Caution
Before executing the script, make sure you understand what it does!
chmod +x setup.sh # Make the script executable
./setup.shYou can exclude some configurations by adding them to the --ignore=<dirName> option in the file .stowrc. By default some configurations are disabled in the .stowrc file. To enable them, remove the --ignore=<folders> option.
If you want to revert the changes and restore your configuration, you can use the following command:
./setup.sh --unstowNote
It will also remove the .zshenv file that was created with the script. So if you previously had a .zshenv file it will be restored too.
In order to symlink files to the configuration directory $HOME/.config/, use the following command:
stow .If you want to copy one by one use:
stow --targer ~/.config --dotfiles dirNameInstall packages with brew, you don't need all of them, but most of them are required:
# Make a backup of the installed packages
brew leaves > leaves.txt
# Fresh installation
brew install < leaves.txt