Category: digital     |    Tags: linux  

Alias for updating YADM

Yadm update alias

Ref: YADM

Open ~/.config/yadm/repo.git/config and add the following

[alias]
  update = !git add -u && git commit -m \"$(date)\" && git push

Now when you give the command yadm update, yadm will update all the exisiting files in repo, commit it with date and try to push to orgin. For bonus, you can add ssh keys to github/gitlab accounts and set this on a cron job to completely automate backing up of your configuration.

Related Posts

Personal Knowledge Base - Criteria and Candidates
Emacs - Adding clipboad.js to HTML exports
Emacs: Notes on keybindings in GNU+Linux
zsh: Parameter expansion cheatsheet
© 2019 - 2024 · Home ยท Theme Simpleness Powered by Hugo ·