Giter Club home page Giter Club logo

Comments (3)

jacobwgillespie avatar jacobwgillespie commented on June 2, 2024 1

You could always whitelist that file in your .gitignore by adding the following to it:

ssh.symlink/*
!ssh.symlink/config

That would block everything but the config file, so any SSH keys, etc, would be omitted.

How about creating a special character (like \) that is replaced with /

It'd probably be better for it to just detect .symlink files or folders at any depth and preserve their hierarchy when symlinking rather than introducing the backslash as a separator. But with the .gitignore adjustments above you can avoid it the extra complexity entirely.

from dotfiles.

holman avatar holman commented on June 2, 2024

I think .gitignore is probbbbbbably the best way to do it. I just have that outside of my dotfiles directory because... well, no reason, just laziness and haven't seen a huge need yet, I suppose. :)

Going to close this for now but if any other thoughts I'd be happy to hear them!

from dotfiles.

alxppp avatar alxppp commented on June 2, 2024

I'm putting the ln -s in an install.sh for now.

How about creating a special character (like \) that is replaced with / for .symlink files, so we can specify subdirectories? The ssh config file would then be in ~/dotfiles/ssh/ssh\config.symlink.

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.