Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interactive commit messages for --backup-dots #335

Closed
alichtman opened this issue Nov 13, 2023 · 0 comments · Fixed by #337
Closed

Add interactive commit messages for --backup-dots #335

alichtman opened this issue Nov 13, 2023 · 0 comments · Fixed by #337
Labels

Comments

@alichtman
Copy link
Owner

alichtman commented Nov 13, 2023

06:23:39 AM ➜ shallow-backup --backup-dots


              dP                dP dP                        dP                         dP
              88                88 88                        88                         88
     ,d8888'  88d888b. .d8888b. 88 88 .d8888b. dP  dP  dP    88d888b. .d8888b. .d8888b. 88  .dP  dP    dP 88d888b.
     Y8ooooo, 88'  `88 88'  `88 88 88 88'  `88 88  88  88    88'  `88 88'  `88 88'  `"" 88888"   88    88 88'  `88
           88 88    88 88.  .88 88 88 88.  .88 88.88b.88'    88.  .88 88.  .88 88.  ... 88  `8b. 88.  .88 88.  .88
     `88888P' dP    dP `88888P8 dP dP `88888P' 8888P Y8P     88Y8888' `88888P8 `88888P' dP   `YP `88888P' 88Y888P'
                                                                                                          88
                                                                                                          dP	
	v6.2 by Aaron Lichtman (@alichtman)

Detected git repo.
Updating .gitignore file at /home/alichtman/shallow-backup/.gitignore with config from root-gitignore
Updating .gitignore file at /home/alichtman/shallow-backup/dotfiles/.gitignore with config from dotfiles-gitignore

##########
# DOTFILES
##########

Backing up dotfolders...
Backing up dotfiles...
Checking for separate git repo in dotfiles directory...
Detected a nested dotfiles repo that is dirty!!
Do you want to create and push a commit in this repo first, before dealing with the parent?
[?] If you do not, the parent repo will not be able to commit the dotfile changes (due to a dirty submodule):  Yes
 >  Yes
    No

Okay, switching into dotfiles subrepo...
pre-commit installed at .git/hooks/pre-commit
Staging all files for commit...
Git status of /home/alichtman/shallow-backup/dotfiles
On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	new file:   .config/irb/irbrc
	modified:   .config/shallow-backup.conf

[?] Show git diff?:  Yes
 >  Yes
    No

diff --git a/.config/irb/irbrc b/.config/irb/irbrc
new file mode 100644
index 0000000..1bf3105
--- /dev/null
+++ b/.config/irb/irbrc
@@ -0,0 +1,4 @@
+# frozen_string_literal: true
+
+IRB.conf[:SAVE_HISTORY] ||= 1000
+IRB.conf[:HISTORY_FILE] ||= File.join(ENV['XDG_DATA_HOME'], 'irb', 'history')
diff --git a/.config/shallow-backup.conf b/.config/shallow-backup.conf
index c8438ff..888ddb7 100644
--- a/.config/shallow-backup.conf
+++ b/.config/shallow-backup.conf
@@ -7,6 +7,7 @@
 		".config/fzf-notes": { },
 		".config/git/config": { },
 		".config/git/gitignore_global": { },
+		".config/irb/irbrc": { },
 		".config/jrnl/jrnl.yaml": { },
 		".config/kitty": { },
 		".config/nvim": { },
[?] Make a commit (with a trufflehog pre-commit hook)? Ctrl-C to exit:  Yes
 >  Yes
    No

Making new commit...
TruffleHog...............................................................Passed
[main ef3222b] Back up dotfiles.
 2 files changed, 5 insertions(+)
 create mode 100644 .config/irb/irbrc
None
[?] Does the trufflehog output contain any secrets? If so, please exit and remove them.:  No
    Yes
 >  No

Successful commit.
alichtman added a commit that referenced this issue Nov 15, 2023
alichtman added a commit that referenced this issue Nov 16, 2023
alichtman added a commit that referenced this issue Nov 16, 2023
alichtman added a commit that referenced this issue Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant