My personal computers' dotfiles.
In order to be able to manage the dotfiles, you just need:
Clone the repository in your $HOME
directory, so it exists as a subdirectory of your $HOME
directory:
cd $HOME
git clone https://github.com/davidlj95/.files # repo will be in `$HOME/.files`
⚠️ It's important you clone it in your$HOME
directoryOtherwise, you won't be able to easily symlink files into
$HOME
directory
Init the git submodules:
cd .files
git submodule update --init --recursive
Each folder represents a collection of dotfiles for a given application.
Stow manages the dotfiles by creating symlinks for every file or directory inside the folder whose dotfiles are
being activated into the parent directory (that's why we cloned inside $HOME
).
To install a group dotfiles (a directory inside this repo), use the following command when you're inside the repository:
cd $HOME/.files # ensure you're in the repository
stow directory
Where directory
is the directory whose dotfiles you want to install.
🎉 Now files inside that directory are symlinked
in your $HOME
directory. For instance: if you stow foo
, and there's a dotfile .bar
inside of foo
directory, now $HOME/.bar
is a
symbolic link to foo/bar
.
Same procedure to uninstall but with the -D
flag.
cd $HOME/.files # ensure you're in the repository
stow -D directory
A function exists to enable a selection of bash-it
aliases and plugins
For fonts in powerline
theme to work, install Powerline fonts
The shell
directory contains configurations that are shell-agnostic. Should work with zsh
and bash
. In order to load them, bash
and zsh
configs try to source those files if present.
Comes with Oh My Zsh configured, several plugins enabled & some custom plugins and themes (in zsh/.zsh-custom
).
To see fonts properly when using powerlevel10k
(the configured theme), check the guide on how to install them. You can also use the Powerline fonts if you prefer something else than Meslo
font. I've used it and works too.
A Jetbrains IDE is used to manage the repository.
Several built-in tools are provided to manage shell script files. However, some require enabling them and some require some tweaks (that can't be shared as project settings).
It uses the built-in settings for formatting shell files. But to do so, shfmt
tool must be installed. Go to Editor -> Code Style -> Shell Script
and look for the Shfmt formatter
section to install it.
- VIM configs based on https://github.com/amix/vimrc
- SSH configs import
- Custom VIM configs
- Script to automatically install basic dotfiles (
basic.sh
) - Use
dotdrop
for more configurations