diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2025-09-17 22:11:37 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2025-09-17 22:11:37 +0200 |
| commit | a8a6111e22a69a315bfb1fb112d24a03bb8c1fa3 (patch) | |
| tree | 8f3e94b4630cdc740fee439b58779630aec73287 /bin/doctor.rb | |
| parent | 2430f51e5b5db7cc7feeb8728ac8e9e7bd99e224 (diff) | |
| download | dotfiles-a8a6111e22a69a315bfb1fb112d24a03bb8c1fa3.tar.gz dotfiles-a8a6111e22a69a315bfb1fb112d24a03bb8c1fa3.zip | |
bin: Add 'do-backup.sh'
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'bin/doctor.rb')
| -rwxr-xr-x | bin/doctor.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/doctor.rb b/bin/doctor.rb index 186b7e6..24662e9 100755 --- a/bin/doctor.rb +++ b/bin/doctor.rb @@ -65,11 +65,16 @@ raise 'Dude, something is really funky on your HOME!' unless Dir.exist?(Dir.home SOURCE = Pathname.new("#{File.dirname(__FILE__)}/..").realpath +# Create the systemd local configuration if it doesn't exist already. +systemd_user_path = File.join(Dir.home, '.config/systemd/user/') +FileUtils.mkdir_p(systemd_user_path) unless File.exist?(systemd_user_path) + files = %w[ bin .vim .gnupg/gpg-agent.conf .gnupg/gpg.conf .config/alacritty .config/emacs .config/gdb .config/ghostty .config/irb .config/mise .config/msmtp .config/mimeapps.list .config/user-dirs.dirs + .config/systemd/user/do-backup.service .config/systemd/user/do-backup.timer .bash_profile .bashrc .clang-format .gemrc .gitconfig .gitconfig-suse .hunspell_ca_ES .inputrc .mbsyncrc .psqlrc .rvmrc .tmux.conf .valgrindrc .vimrc ] |
