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.

Linking dotfiles to another location

See original GitHub issue

I understand that from the config usually you link to ~, and you can change this to another folder outside of home even.

I am setting up my dotfiles on a new drive (I’m replacing it), so while the new drive will be home later, right now it will be mounted somewhere else.

I am going to clone the dotfiles to that new drive, but if I run the script it will link to home.

How would I be able to link to the mounted drive? Would HOME=/mnt/home ./install be enough so the command thinks the mounted drive is the home?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
anishathalyecommented, Nov 1, 2018

Your shell expands $HOME based on its environment variables; if you do, e.g. HOME=/mnt/new_home/brott $SHELL and then run those commands in the shell you just launched, it’ll work as you expect.

0reactions
Brottweilercommented, Nov 1, 2018

After all, I ended up removing all the links manually. Then I started my computer with the new home drive, ran the script. Then rebooted so make sure everything was in order

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dotfiles – What is a Dotfile and How to Create it in Mac and ...
By default, most hidden confuguration files are located there. The second argument is the path where you want to move the file to....
Read more >
How to Create a Dotfiles Folder - YouTube
... you how you can create a dotfiles folder and move important configuration files there. We'll also learn how to set up symbolic...
Read more >
rhysd/dotfiles: dotfiles symbolic links management CLI - GitHub
Change current directory to the directory you want to put a dotfiles repository. Clone your dotfiles repository with $ dotfiles clone . Enter...
Read more >
Using GNU Stow to Manage Symbolic Links for Your Dotfiles
Let's say we've got our configuration files stored in a directory under the home directory called .dotfiles . We can easily create symbolic...
Read more >
Keeping dotfiles in sync for different folders
I am using Dropbox for storing my dotfiles from which I create soft links to my home directory. For configuration files which I...
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