Code Monkey home page Code Monkey logo

Comments (3)

aryarm avatar aryarm commented on June 24, 2024

I like the idea of having a single file that includes the rest of the files in the repo. But what if the user doesn't want to include all the files? I guess we could just tell them they can comment out those lines.

If we wanted to make this super complicated, we could create an installation script. 😆 We could instruct people to run it upon cloning the repo and it could ask the user which files to include. Upon the user making these choices, it could edit the file that includes the rest of the files in the repo. Then, it could append a line to .bashrc to include that file. The script could determine the path to its directory using dirname "$(readlink -f "$0")".
There are a couple things we could do from there. Either we force the installation script to delete itself, or we leave the script there so that the user can run it whenever they want to change what's getting included. Then, we could have the script check whether .bashrc has been appropriately edited each time it's run.

from myaliases.

GiselleSerate avatar GiselleSerate commented on June 24, 2024

The general strat is currently to write things to an external file and include that in the .bashrc, that way if anything explodes, it can be largely self-contained.

from myaliases.

GiselleSerate avatar GiselleSerate commented on June 24, 2024

Seems to be resolved! I'll migrate various improvements to other issues. Also we should probably keep an eye on it. It relies on ~/.bash_aliases being included in the ~/.bashrc. (Although if this is an erroneous assumption we can very easily change the line where it references ~/.bash_aliases to reference the ~/.bashrc directly.)

from myaliases.

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.