Configuration files for Linux & macOS environments
# If you don't already have Git installed: # sudo apt install git # Clone the repository via HTTPS to a hidden subdirectory git clone https://github.com/d2s/dot.git ~/.dotfiles # Clone the repository via SSH to a hidden subdirectory # (if you have added SSH public key to GitHub's user settings) # # git clone git@github.com:d2s/dot.git ~/.dotfiles # Install Zinit mkdir ~/.dotfiles/zsh/zinit git clone https://github.com/zdharma/zinit.git ~/.dotfiles/zsh/zinit/bin # Link Zsh configuration files ln -sf ~/.dotfiles/zsh/zshrc.symlink ~/.zshrc # Link Git configuration files ln -sf ~/.dotfiles/git/gitconfig ~/.gitconfig ln -sf ~/.dotfiles/git/gitignore_global ~/.gitignore # Install related tools... # If on a Debian-based Linux system: ~/.dotfiles/scripts/install-apt-packages.sh # If on a openSUSE-based Linux system: ~/.dotfiles/scripts/install-suse.sh # Change default terminal shell to Zsh chsh -s $(which zsh) # After you have installed Node.js # Install CLI tools from npm ~/.dotfiles/scripts/install-npm-packages.sh # Get the submodule dependencies (not be needed anymore) # NOTE: colors palette # # git submodule init # git submodule update Create a ~/.gitconfig.local file for the local overrides. It allows you to adjust Git configs for system-specific needs while keeping the shared settings in the version control.
touch ~/.gitconfig.local code ~/.gitconfig.local[user] name = Firstname Lastname email = user@example.com # signingkey = 0000000000000000 [github] user = your_github_username GPG key is required for creating new Git commits. Update the signingkey part of ~/.gitconfig.local file to match your local system.
More details about how to sign Git commits with a GPG key is available from the following article:
mkdir ~/bin mkdir ~/Documents/gitIf you have a previous installation of Zplugin, it should be migrated to use Zinit.
cd ~/.dotfiles/zsh mkdir zinit git clone https://github.com/zdharma/zinit.git zinit/bin# Zinit ignored directories # - https://github.com/zdharma/zinit zsh/zinit/plugins zsh/zinit/root_completions zsh/zinit/snippets/plugins After a moment of waiting time, the Zinit environment should be usable again.
After making sure that there aren't any files you need from it, remove the old Zplugin directory.
NOTE: Be careful with the rm remove command!
cd ~/.dotfiles/zsh rm -rdf zpluginBecause the Zinit installation is outside of the dot Git repository you need to repeat the installation steps to migrate other machines to the new config.
You will see error message before running rest of the steps if you open a new terminal without first doing the migration.
cd ~/.dotfiles/zsh mkdir zinit git clone https://github.com/zdharma/zinit.git zinit/bin cd ~/.dotfiles/zsh rm -rdf zplugin- Zinit
- "Flexible Zsh plugin manager with clean fpath, reports, completion management, Turbo, annexes, services, packages."
- tonsky/FiraCode (Monospaced font with programming ligatures)
- Font Awesome (icon font and CSS toolkit)
- Download zip file
- Uncompress zip file.
- Open
fonts/FontAwesome.otffile to add it to the operating system.