Git Product home page Git Product logo

Comments (3)

a-berg avatar a-berg commented on June 14, 2024

I think it's a matter of how ln works. I'm a bit of a noob, but by doing

ln ln -s "$CONFIGS_DIR/$2/.*" $EMACSDIR
                         ^^^

it works. If you confirm that this doesn't break anything I can make a PR.

from ihsec.

lkcampbell avatar lkcampbell commented on June 14, 2024

I ran into the same problem on my Mac.

I believe the expected behavior is to change the regular directory ~/.emacs.d/ into a symbolic directory link that points to ~/.ihsec/foobar/.

The observed behavior, as stated above, is that a symbolic link to ~/.ihsec/foobar/, called foobar, is put inside of the ~/.emacs.d/, which doesn't work.

I tried the script change proposed by @a-berg but it didn't work for me. Not sure why. I'm not great with bash scripting either.

I imagine the bug fix for this would involve some permutation of the ln command that changes the existing source directory into a symbolic link, but, again, I am not savvy enough with bash scripting (yet) to know what that solution would be.

One workaround that you can do without changing the script is to remove the ~/.emacs.d/ directory prior to running the command. Although this still has some problems, such as the arrow appearing next to all entries in the output for ihsec list, instead of only showing an arrow next to the current configuration.

I might play around with it a bit more. @daedreth are you still maintaining this repo? Doesn't look like you have had activity in a while. If so, I will investigate and make a pull request. If not, I will just tweak my own version. Thanks.

from ihsec.

SamuelBanya avatar SamuelBanya commented on June 14, 2024

Agreed.

NOTE: Do the following at your own risk and make sure you backup your Emacs config on a Git repo if necessary.

Just tried out 'ihsec' and the only way to truly make it work the first time is to delete your contents of '~/.emacs.d'. Afterwards, it was pretty easy to just grab peoples' Emacs configs from GitHub to test them out. Kind of fun, and still a very useful package.

Would be cool if someone made an actual MELPA package with a Helm style mode to just swap stuff on the fly but I guess you would need a baseline config for something like that too to keep it consistent. The choice to use Bash in that sense actually makes a ton sense with this in mind.

from ihsec.

Related Issues (7)

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.