Compare commits
6 Commits
80a565813c
...
fee835708f
Author | SHA1 | Date |
---|---|---|
Mathis | fee835708f | |
Mathis | 0d4d2de665 | |
LordMathis | 642187d71e | |
LordMathis | 8b5f2bffa8 | |
LordMathis | dcdea6b580 | |
LordMathis | a1200a3534 |
|
@ -6,14 +6,18 @@ 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)
|
||||
|
||||
## Usage
|
||||
## Install
|
||||
|
||||
`curl https://git.namesny.com/Mathis/dotfiles/raw/branch/master/install.sh | zsh -s -- <branch name>`
|
||||
|
||||
## Manual install
|
||||
|
||||
* `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/)
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#!/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
|
Loading…
Reference in New Issue