valotas / dotfiles

A way to setup/config my machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

Just a collection of dotfiles that can be used in any pc of mine

Installation

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>

Updating

Just pull the latest changes and setup:

git pull origin master
./script/setup.sh

Vim

The configuration covers both vim and neovim as proposed here

Adding a vim plugin

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.

Uninstalling

In order to uninstall a directory:

stow -D [directory]

Additional setup

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.

wsl

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"

Usage

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

Further reading

About

A way to setup/config my machine


Languages

Language:Vim Script 61.2%Language:Shell 38.8%