Added vim state
This commit is contained in:
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user