question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add copy config option

See original GitHub issue

Add an option to copy file instead of symlink, e.g.

- link:
    ~/.zshrc:
      copy: true
      path: zshrc

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
anishathalyecommented, Jun 15, 2017

Would it be better to just have a separate copy: thing like link: ?

1reaction
eengstromcommented, May 29, 2021

@jmigual - I offer an alternative for your use case that I use:

First, I define an environment variable, ${DBOT_TARGET_DISTRO}, which is set in mydotbot wrapper script. Then, with a file ~/.gitconfig-windows or ~/.gitconfig-linux or whatever, you can link the distro-local file like this:

- link:
    # add some distro-specific symlinks
    ~/.gitconfig-local:
      path: ~/.gitconfig-${DBOT_TARGET_DISTRO}
      if: '[ -n "$DBOT_TARGET_DISTRO" ]'

Finally, include that in your main~/.gitconfig file like this:

[include]
  path = ~/.gitconfig-local
Read more comments on GitHub >

github_iconTop Results From Across the Web

copy-config option requires an argument · Issue #1002 - GitHub
Trying to follow the README: For configuration, check the files in ranger/config/ or copy the default config to ~/.config/ranger with ranger ...
Read more >
copy-config - Oracle Help Center
The copy-config subcommand creates a named configuration in the configuration of the domain administration server (DAS) by copying an existing configuration.
Read more >
CopyWebpackPlugin | webpack
Copies individual files or entire directories, which already exist, to the build directory. Getting Started. To begin, you'll need to install copy-webpack- ...
Read more >
How to not copy app.config file to output directory
There are exactly two options. Either the application needs the file, then it has to be copied to the output folder. Or the...
Read more >
Documentation - Rclone
rclone config - Enter an interactive configuration session. rclone copy - Copy files from source to dest, skipping already copied. rclone sync -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found