Skip to content

kev1njodea/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kev1njodea/dotfiles

bash prompt

Version control for my Linux configuration files using a bare Git repository.

How-To

  • Initial commit

    Setup Bare Git Repository for Public Repo

    1. Create a bare repository:

      git init --bare $HOME/.dotfiles
    2. Create an alias to manage the dotfiles:

      alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
    3. Add the alias to your shell configuration:

      echo "alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.bashrc
    4. Exclude the .dotfiles directory from being tracked:

      echo ".dotfiles" >> $HOME/.gitignore
    5. Tell git not to show untracked files

      dotfiles config --local status.showUntrackedFiles no
    6. Ensure sensitive information is not included

    [!WARNING] Before committing, check for any sensitive information (e.g., API keys, passwords) and either remove or ignore those files.

    1. Initial commit:

      dotfiles add .bashrc .zshrc .vimrc # add others as needed
      dotfiles commit -m "Initial commit of dotfiles"
      dotfiles remote add origin <repo-url>
      dotfiles push -u origin main
  • Following commits
    1. Example

      dotfiles status
      dotfiles add .bashrc
      dotfiles commit -m "New alias"
      dotfiles push
  • Starship setup
    1. Guide / Config

      curl -sS https://starship.rs/install.sh | sh
      
      echo 'eval "$(starship init bash)"' >> ~/.bashrc
      
      mkdir -p ~/.config && touch ~/.config/starship.toml
    2. Theme - Gruvbox Rainbow

      nano ~/.config/starship.toml

      Paste in configuration, save, open new shell

About

kev's configs

Resources

Stars

Watchers

Forks

Languages