My current dotfiles
Find a file
2026-01-25 11:11:09 +02:00
.config Add init.lua 2026-01-25 11:11:09 +02:00
.fonts Add fonts 2024-04-03 04:59:11 +03:00
.local/bin Update alacritty, tmux configs. Add a couple of new functions to bash_aliases. Add a shell script to toggle Alacritty's opacity in .local/bin/ 2026-01-25 11:06:35 +02:00
.bash_aliases Update alacritty, tmux configs. Add a couple of new functions to bash_aliases. Add a shell script to toggle Alacritty's opacity in .local/bin/ 2026-01-25 11:06:35 +02:00
.git_aliases Add .git_aliases, update .tmux.conf, update README to include instr of adding the .git_aliases 2024-02-27 18:44:37 +02:00
.tmux.conf Update alacritty, tmux configs. Add a couple of new functions to bash_aliases. Add a shell script to toggle Alacritty's opacity in .local/bin/ 2026-01-25 11:06:35 +02:00
README.md Update alacritty, tmux configs. Add a couple of new functions to bash_aliases. Add a shell script to toggle Alacritty's opacity in .local/bin/ 2026-01-25 11:06:35 +02:00

Dotfiles

The purpose of this directory is to monitor dotfiles via a bare git repository. It is inspired by this https://www.atlassian.com/git/tutorials/dotfiles blogpost, which in turn was inspired by this https://news.ycombinator.com/item?id=11070797 HN thread. The repo has two branches, the main branch I use on Ubuntu distros with an GNOME DE. The arch branch is surprisingly for my minimal arch setup, currently running X11 + openbox + polybar.

Setting up this project initially:

  1. git init --bare $HOME/.cfg
  2. alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' or echo "alias config='usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
  3. config config --local status.showUntrackedFiles no

Installing on a new system

While in $HOME

  1. Add the following to .bashrc alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
  2. source .bashrc
  3. echo ".cfg">> .gitignore. This is to prevent potential recursive problems
  4. git clone --bare https://github.com/leoalho/dotfiles.git $HOME/.cfg
  5. Checkout the content to $HOME: config checkout
  6. config config --local status.showUntrackedFiles no

.git_aliases

To use the git aliases in your .gitconfig. Add the following lines to your .gitconfig: [include] path = ~/.git_aliases, or any other path depending on your $HOME

.bash_aliases

To use the bash aliases in your .bashrc include the following to your .bashrc if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi

Tmux uses the tpm for plugins

https://github.com/tmux-plugins/tpm

Nvim uses vim-plug

https://github.com/junegunn/vim-plug