Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export DOTFILES=$HOME/.dotfiles
- dotfiles() {
- git --git-dir=$DOTFILES --work-tree=$HOME $@
- dotfiles-init() {
- git init --bare $DOTFILES
- dotfiles config --local status.showUntrackedFiles no
- }
- dotfiles-clone() {
- local tmp=$(mktemp -d)
- git clone --separate-git-dir=$DOTFILES $tmp $1
- find $tmp -type f -name ".git*" -exec cp \{\} \;
- rm -fr $tmp
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement