In order to enjoy full terminal experience I highly recommend to install one of the Nerd Fonts. I currently use JetBrainsMono Nerd Font
.
# Retrieve the latest version
version=$(curl --silent "https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest" | jq -r .'tag_name')
# Create font directory
mkdir -pv ${HOME}/.local/share/fonts/JetBrainsMono
# Download and extract the font collection
curl -sLO https://github.com/ryanoasis/nerd-fonts/releases/download/${version}/JetBrainsMono.zip
unzip JetBrainsMono.zip -d ${HOME}/.local/share/fonts/JetBrainsMono/
# Rebuild font cache
fc-cache -f -v
# Cleanup
rm -rf JetBrainsMono.zip
Fork this repository and follow the steps below:
Create a new .dotfiles directory and initialize a bare repository.
mkdir -p $HOME/dotfiles && git init --bare $_
Note: To make your life easier, ensure that the initial branch name is
main
by usinggit config --global init.defaultBranch main
.
Create a runtime alias.
alias config='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME'
Optionally hide untracked files.
config config --local status.showUntrackedFiles no
Configure the upstream repository, update with your username.
config remote add origin [email protected]:maroskukan/dotfiles
Pull from origin.
config pull origin main
Note: If you receive an error
Error: Untracked working tree file <file-name> would be overwritten by merge
. You can add itconfig add <file-name>
and stash itconfig stash
and then pull again.
When ready, source the .bashrc
file to make changes effective.