Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My personal configuration files, managed with symlinks so edits here show up live wherever they're used.

Currently includes:

  • nvim/ — Neovim config
  • starship/starship.toml — Starship prompt config
  • tmux/.tmux.conf — tmux config

Install

Clone this repo into your home directory:

git clone https://github.com/YOUR_USERNAME/dotfiles.git ~/dotfiles
cd ~/dotfiles
./install.sh

This symlinks each config into the place the app expects it (e.g. nvim/~/.config/nvim, tmux/.tmux.conf~/.tmux.conf).

Adding a new config

  1. Move the config folder/file into this repo, ideally into its own subfolder:
   mkdir -p ~/dotfiles/starship
   mv ~/.config/starship.toml ~/dotfiles/starship/starship.toml
  1. Open install.sh and add a new ln -sfn line for it, following the same pattern as the existing ones:
   #!/usr/bin/env bash
   set -e
   DOTFILES="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
   mkdir -p ~/.config
   ln -sfn "$DOTFILES/nvim" ~/.config/nvim
   ln -sfn "$DOTFILES/starship/starship.toml" ~/.config/starship.toml
   ln -sfn "$DOTFILES/tmux/.tmux.conf" ~/.tmux.conf
   # ...(more lines)
   echo "Dotfiles linked."
  1. Run the install script again to create the new link:
   ./install.sh
  1. Commit and push both the moved config and the updated install.sh:
   git add .
   git commit -m "Add starship config"
   git push

From then on, editing ~/.config/starship.toml and editing ~/dotfiles/starship/starship.toml are the same thing — it's one file linked in two places.

About

Collection of my personal configuration files for various tools and applications.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages