Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. export DOTFILES=$HOME/.dotfiles
  2.  
  3. dotfiles() {
  4. git --git-dir=$DOTFILES --work-tree=$HOME $@
  5.  
  6. dotfiles-init() {
  7. git init --bare $DOTFILES
  8. dotfiles config --local status.showUntrackedFiles no
  9. }
  10.  
  11. dotfiles-clone() {
  12. local tmp=$(mktemp -d)
  13. git clone --separate-git-dir=$DOTFILES $tmp $1
  14. find $tmp -type f -name ".git*" -exec cp \{\} \;
  15. rm -fr $tmp
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement