Added vim state

This commit is contained in:
Jonas Forsberg
2020-07-31 15:12:20 +02:00
parent c936a030a4
commit 4e2fdd73e7
7 changed files with 32 additions and 7 deletions

View File

@@ -11,13 +11,13 @@ tags:
I use a very simple way to manage my dotfiles with git and some bash aliases.
All you have to create a folder for your git repository in your home folder and initiate a bare git repository
```bash
mkdir "$HOME/.dotf"
git init --bare "$HOME/.dotf"
mkdir "$HOME/.dotfiles"
git init --bare "$HOME/.dotfiles"
```
Then create an alias so you don't have to write a long command each time you want to add a file or configure your git repository, don't forget to add that alias to $HOME/.alias
```bash
alias dotf='/usr/bin/git --git-dir=$HOME/.dotf --work-tree=$HOME'
alias dotf='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
```
so, that alias is calling git and sets the repository as well as working directory and it can be called from what ever path you currently be in.