added readme
This commit is contained in:
		
							parent
							
								
									6f870bc246
								
							
						
					
					
						commit
						f01cc11249
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		
							
								
								
									
										18
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
# Doman DOT
 | 
			
		||||
 | 
			
		||||
I stole this idea. But it works magic.
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
To setup dotfiles run:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
REPO_URL=git@github.com:ickyicky/dot.git
 | 
			
		||||
git clone --bare $REPO_URL $HOME/.dot/
 | 
			
		||||
alias dot="/usr/bin/git --git-dir=$HOME/.dot/ --work-tree=$HOME"
 | 
			
		||||
dot config status.showUntrackedFiles no
 | 
			
		||||
dot restore --staged .
 | 
			
		||||
source $HOME/.zshrc
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Then manage dotfiles by dot alias to git, magic!
 | 
			
		||||
		Loading…
	
		Reference in a new issue