Compare commits

..

No commits in common. "fee835708ff913e572a0670a3cf076da51d45e34" and "80a565813cc9ac23bc946483014c9b1fdf33da82" have entirely different histories.

2 changed files with 2 additions and 21 deletions

View File

@ -6,18 +6,14 @@ My dotfiles. If you want to use them fork or clone the repo. Each branch has spe
* [git](https://git-scm.com/), [zsh](http://www.zsh.org/) and [bat](https://github.com/sharkdp/bat)
## Install
`curl https://git.namesny.com/Mathis/dotfiles/raw/branch/master/install.sh | zsh -s -- <branch name>`
## Manual install
## Usage
* `echo ".dotfiles" >> .gitignore`
* `git clone --bare git@git.namesny.com:Mathis/dotfiles.git $HOME/.dotfiles`
* `alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'`
* `config checkout <branch-name>`
* `config submodule init`
* `config submodule update`
* `config checkout`
* `source .zshrc`
## [Full Guide](https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/)

View File

@ -1,15 +0,0 @@
#!/usr/bin/zsh
if [ $# -eq 0 ]
then
echo "Git branch name missing"
exit 1;
fi
echo ".dotfiles" >> $HOME/.gitignore
git clone --bare https://git.namesny.com/Mathis/dotfiles.git $HOME/.dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config checkout $1
config submodule init
config submodule update
source .zshrc