LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2020, 04:09 AM   #61
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,714

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479

Quote:
Originally Posted by JZL240I-U View Post
Log in and click on "Tread Tools". That should do it.
Hi JZL240I-U. I'm obviously logged in already, since I posted the previous comment. The Thread Tools feature for other threads that I've made show the mark as solved option. But the option is not there for this thread.
 
Old 03-16-2020, 08:08 AM   #62
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by linustalman View Post
I don't see any option to mark this thread as solved.
Only the original poster can mark a thread as Solved.
As you're not that OP, the option isn't there for you.
 
Old 03-16-2020, 08:49 AM   #63
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,714

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by ehartman View Post
Only the original poster can mark a thread as Solved.
As you're not that OP, the option isn't there for you.
Hi ehartman, thanks. My bad. I was sure that I had begun this thread - I might be getting it mixed up with another similar thread that I started a while back. 🤦
 
Old 03-17-2020, 02:09 AM   #64
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by linustalman View Post
I was sure that I had begun this thread - I might be getting it mixed up with another similar thread that I started a while back. 🤦
This thread essentially is a poll, started by Jeremy (the Forum owner) himself. See message #1 in the thread.
 
Old 03-17-2020, 04:15 AM   #65
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by jeremy View Post
The official LQ poll series continues. This time we want to know: How do you manage your dotfiles?
I essentially do not: I backup the whole partition every month and my home dir (selectively) every once in a while, when I think too much has changed.
 
Old 03-17-2020, 08:34 AM   #66
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
tar and rsync backup hidden files just fine, but restoring after a disaster can be a lot of work. I actually created a directory with symbolic links to my .emacs, .bashrc, .ssh/ and other files that would be life-changing if I lost. It makes recovery one step simpler to have that set of immediately needed files handy.
 
Old 03-17-2020, 08:45 AM   #67
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
That's why I'm going to start using Ansible!
 
Old 03-17-2020, 11:10 AM   #68
slakster
LQ Newbie
 
Registered: Jan 2008
Location: Riverside IL
Distribution: Ubuntu/CentOS/Arduino
Posts: 7

Rep: Reputation: 2
backup of dotfiles

I copy all dotfiles to a separate directory and rename them with the dot removed. This is easier for me to see the one I want to restore from a backup of that directory.
 
Old 12-03-2022, 10:52 AM   #69
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
git-subrepo and stow.

This combination deprecates things like the plugin managers/frameworks for ZSH and vim.

Last edited by dugan; 12-03-2022 at 04:53 PM.
 
Old 12-03-2022, 12:54 PM   #70
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by dugan View Post
Are you using GNU Stow in the manner described by Brandon Invergo, (as per Stow homepage) or a different method?

I'm not sure I understand what specifically git-subrepo does and how it helps - the combination seems more complicated than just using Git's built-in functionality for splitting repo and working dir (as described by Nicola Paolucci of Atlassian)...?


Last edited by boughtonp; 12-03-2022 at 12:55 PM.
 
Old 12-03-2022, 01:26 PM   #71
PsychoHermit
Member
 
Registered: Aug 2021
Location: Carson City Nevada
Distribution: Debian Testing
Posts: 136

Rep: Reputation: Disabled
My dot files get backed up along with everything else in my home directory.

--glenn
 
Old 12-03-2022, 05:00 PM   #72
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,220

Rep: Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319Reputation: 5319
Quote:
Originally Posted by boughtonp View Post
Are you using GNU Stow in the manner described by Brandon Invergo, (as per Stow homepage) or a different method?

I'm not sure I understand what specifically git-subrepo does and how it helps - the combination seems more complicated than just using Git's built-in functionality for splitting repo and working dir (as described by Nicola Paolucci of Atlassian)...?

Well, my dotfiles are here:

https://github.com/duganchen/dotfiles

I, for example, use zsh-syntax-highlighting.

I clone it with git-subrepo to subrepos/zsh-syntax-highlighting:
Code:
git subrepo clone git@github.com:zsh-users/zsh-syntax-highlighting.git subrepos/zsh-syntax-highlighting
I'm going to actually want zsh-syntax-highlighting installed to ~/.zsh, so, in the root of the dotfiles repo, I do this:

Code:
mkdir -p cfg/.zsh
cd cfg/.zsh
ln -s ../../subrepos/zsh-syntax-highlighting
Yes, it's a relative symlink, but stow will be smart enough to deal with that when I use it. Anyway, I need to source it in ~/.zshrc, so I put the following in cfg/.zshrc:

Code:
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
And then, in the root of the repo, I install the contents of the cfg directory with GNU stow:

Code:
stow -t ~ cfg
That creates the ~/.zshrc and ~/.zsh/zsh-syntax-highlighting/ symbolic links, which point to the corresponding locations in the repo's cfg/ directory.

Last edited by dugan; 12-03-2022 at 05:08 PM.
 
Old 12-03-2022, 09:36 PM   #73
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
By now, nearly all programs should place configuration files in $XDG_CONFIG_HOME (default ~/.config) rather than in dotfiles in the home directory. I switched all of my programs years ago.
Ed
 
Old 12-04-2022, 07:47 AM   #74
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by dugan View Post
Well, my dotfiles are here...
Thanks, I get it now. You have dotfiles as a repo, but also multiple repos within dotfiles/subrepos which git-subrepo helps you to manage, without resorting to submodules (which are a PITA).


Quote:
Originally Posted by EdGr View Post
By now, nearly all programs should place configuration files in $XDG_CONFIG_HOME (default ~/.config) rather than in dotfiles in the home directory. I switched all of my programs years ago.
There's a large list of software that still doesn't use it: https://wiki.archlinux.org/title/XDG_Base_Directory#Hardcoded

Many of those could easily add the functionality, but refuse with flimsy and disingenuous excuses.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ls showing dotfiles in bash iaef Linux - Newbie 9 08-28-2015 05:49 PM
[SOLVED] Sourcing dotfiles. Lockywolf Slackware 27 05-06-2014 06:53 AM
[SOLVED] Dotfiles becoming undotted in 64-13.1 ahmadj Slackware 9 12-24-2010 01:50 PM
Archive dotfiles and dotdirectories only mjmwired Linux - Software 3 05-28-2008 10:01 PM
Command line: How do I filter for dotfiles only? unamiccia Linux - General 21 04-14-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration