Skip to content

Latest commit

 

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Requirements

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

Usage

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 using git 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 git@github.com: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 it config add <file-name> and stash it config stash and then pull again.

When ready, source the .bashrc file to make changes effective.

About

My configuration files

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages