GithubHelp home page GithubHelp logo

A smarter deploy script about dotfiles HOT 5 OPEN

parth avatar parth commented on July 22, 2024
A smarter deploy script

from dotfiles.

Comments (5)

maxg203 avatar maxg203 commented on July 22, 2024

My dotfiles are really minimal in comparison to these but one of my favourite things about mine is the way I install it. I copy four lines, one of which clones the git repo as a bare repository and one runs an install script which gets Vundle and runs :PluginInstall for me. The repo is stored under ~/.cfg and I use an alias like alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' in place of the git command to manage the dotfiles Git repo from any directory. I use this install method with Mac and Linux and have had no issues. I would recommend it.

My dotfiles README.md also has a link to the Atlassian article that gave me the core idea for this.

from dotfiles.

Parth avatar Parth commented on July 22, 2024

This is what I ended up coming across with., what do you think @maxg203? Now all I have to do is clone parth/dotfiles and ./deploy. I took a look at your dotfiles, the main thing my ./deploy does is source all my dotfiles. This way, the dotfiles can keep themselves upto date.

from dotfiles.

maxg203 avatar maxg203 commented on July 22, 2024

Very nice. I might add something similar, I love the OS independent if logic for installing system packages on lines 9-19. I've been wanting to add this sort of thing to install neovim by default alongside vim (have you seen nvim)? Also, optionally saving old files is a nice to have - though I doubt you'll ever need to say yes (line 82). Personally I think I might do separate install/update scripts. Thanks for highlighting to me that my post-installation dotfiles management needs a script!

from dotfiles.

maxg203 avatar maxg203 commented on July 22, 2024

My super hacky deploy solution... maxg203/dotfiles@258ac06 (install is still seperate).

from dotfiles.

Parth avatar Parth commented on July 22, 2024

Very nice, have also been thinking about #39. Maybe it would be better to depend on dependency management repositories like apt and brew.

from dotfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.