Skip to content

maroskukan/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 [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 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •