Just a collection of dotfiles that can be used in any pc of mine
The following
git clone git@github.com:valotas/dotfiles.git .dotfiles
./script/bootstrap.sh
./script/setup.sh
should install every config under the packages directory.
To install an individual package:
cd packages
stow --target=$HOME --verbose=2 <package_name>
Just pull the latest changes and setup:
git pull origin master
./script/setup.sh
The configuration covers both vim and neovim as proposed here
Clone the plugin to packages/vim/.vim/pack/plugins/[opt|start]/[name]
. For example for nerdtree:
git submodule add --name nerdtree git@github.com:preservim/nerdtree.git packages/vim/.vim/pack/plugins/opt/nerdtree
And then init the plugin in the packages/vim/.vimrc
.
In order to uninstall a directory:
stow -D [directory]
The the nerd fonts version of source code pro is installed but you might need to use it in your terminal emulator. The name should be SauceCodePro Nerd Font
.
For wsl, you still need to link some things manually to have vscode properly reading the same settings/keybindings on both in windows
and wsl
. So with the windows' command line do the following:
cd \Users\USER\AppData\Roaming\Code\User
mklink keybindings.json "\\wsl.localhost\Ubuntu\home\WSLUSER\.dotfiles\packages\vscode\.config\Code\User\keybindings.json"
mklink settings.json "\\wsl.localhost\Ubuntu\home\WSLUSER\.dotfiles\packages\vscode\.config\Code\User\settings.json"
mklink snippets "\\wsl.localhost\Ubuntu\home\WSLUSER\.dotfiles\packages\vscode\.config\Code\User\snippets"
After installing you can still use some local (meaning machine specific) defined configuration. At the moment the following configuration can be adjusted per machine:
~/.gitconfig.local
is sourced by .gitconfig~/.config/local_aliases.sh
is sourced by bash/zsh for alias declaration