Skip to content

lexeremin/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My automated dotfiles setup

Requirements

  1. 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-font

On Linux:

wget YourLinkToFont
sudo unzip JetBrainsMono.zip -d /usr/share/fonts/JetBrainsNerdFont
sudo fc-cache -fv
  1. 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.txt

On Linux:

Note

It will depend on your package manager, but most of the packages are available on all Linux distributions.

Automated Setup

You can use setup.sh to automatically backup and symlink configuration files. It will backup your current configuration:

  • zsh files in the $HOME directory will be renamed to fileName.bak they will only be renamed if they exist.
  • directories in the $HOME/.config/ that interfere with the symlinking configuration will be renamed to dirName.bak.
  • file .zshenv will be created in the $HOME directory with the content ZDOTDIR=$HOME/.config/zsh.

Caution

Before executing the script, make sure you understand what it does!

chmod +x setup.sh # Make the script executable
./setup.sh

You 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 --unstow

Note

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.

Manual Setup

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 dirName

Install 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

About

My dot files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors