digfiler 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. #!/bin/fish
  2. # tldr: it works like this:
  3. # cp $config $digfig/
  4. # simple. ... 'cept...
  5. #set digfig ~/gittings/Digit/digfiles
  6. set digfiles ~/gittings/Digit/digfiles
  7. #
  8. # may reformat as a list, and a for/while something... but for now...
  9. # this is still being populated. dont rely upon it being "all".
  10. #cp ~/.config/i3/config $digfiles/.config/i3/
  11. #or, should i have them written out as copyable commands too
  12. #cp ~/.config/i3/config ~/gittings/Digit/digfiles/.config/i3/
  13. #yus
  14. # so for now, proceeding with a scruffy manual list of copies.
  15. # ... just to get it done. ... this is over a decade overdue.
  16. # so in this style...
  17. # cp ~/.config/ ~/gittings/Digit/digfiles/.config/
  18. # shells
  19. # fish
  20. cp ~/.fish ~/gittings/Digit/digfiles/
  21. # and for when i made fish complicated:
  22. cp ~/.slowfish.fish ~/gittings/Digit/digfiles/
  23. cp ~/.fastfish.fish ~/gittings/Digit/digfiles/
  24. # bash
  25. cp ~/.bashrc ~/gittings/Digit/digfiles/
  26. # zsh
  27. #
  28. # scripts
  29. # wmrotate
  30. cp ~/bin/wmrotate ~/gittings/Digit/digfiles/bin/wmrotate
  31. # wmrotate's uhhh, deskop file...? something...
  32. # wmrotate's uhhh, xinit file...? something...
  33. # wmrotate's uhhh, loginmanager file...? something...
  34. # wmrotate's uhhh, loginmanager file...? something...
  35. # wmrotate's uhhh, loginmanager file...? something...
  36. # wmrotate's uhhh, loginmanager file...? something...
  37. # window managers
  38. # xmonad
  39. # openbox: [check got all extra menu or alternative configs]
  40. cp ~/.config/openbox/menu.xml ~/gittings/Digit/digfiles/.config/openbox/menu.xml
  41. cp ~/.config/openbox/rc.xml ~/gittings/Digit/digfiles/.config/openbox/rc.xml
  42. # herbstluftwm
  43. # i3
  44. cp ~/.config/i3/config ~/gittings/Digit/digfiles/.config/i3/
  45. # clfswm
  46. #
  47. # text-editors
  48. # emacs: [ got complicated different versions for a while there... ]
  49. # whatever simple one i'm using:
  50. cp ~/.config/.emacs ~/gittings/Digit/digfiles/.emacs
  51. # but properly, i need to keep copies of...
  52. # . . . . of... idk, .init.el or .emacs.d or... ... versions...
  53. # yi
  54. # mcedit
  55. # nano
  56. # vim
  57. # micro
  58. # mg
  59. #
  60. # web browsers
  61. # qutebrowser
  62. # firefoxen
  63. # uzbl
  64. # netsurf
  65. # librewolf
  66. #
  67. #
  68. # system
  69. # bedrock conf
  70. # package managers
  71. # pre-fancy end message
  72. echo "and since this script isnt fancy yet,
  73. remember to go update the git.
  74. you remember how, right? :::
  75. git add, git commit -a -m, git push"
  76. #rly should have it fancy though...
  77. # variableised, to facilitate verbosity n such...
  78. # with:
  79. # -c --check [default] checks for changes
  80. # -n --no-checks override check, copies even if files are same.
  81. # -v --verbose [default] verbosity, so it spits progress reports, says the command its doing
  82. # -a --ask [default~] asks before each
  83. # -d --diff display diffs of each. (verbose ask)
  84. # -e --execute override ask, just do it.
  85. # -p --pretend preview, to just spit out the commands without doing them (like override overright)
  86. # -b --backups make/update backup file while copying.
  87. # -B --backups make dated backups while copying.
  88. # -o --overright [default] override backup (rly needs renaming)
  89. # -q --quiet quiet mode
  90. # -f --full full mode, does everything.
  91. # -g --gitpipe pipe in git features, like branching.
  92. # -x --extract copies from digfiles, populates file system. (or should be, -r --restore ...?)
  93. # -h --help display this help, listing options.
  94. # examples
  95. #digfiler -de # displays the changes, and applies them, without asking.
  96. #digfiler -eqn # copies all, displays nothing, asks nothing, checks nothing. (default at time of writing...) ;)
  97. #digfiler -cva # checks, verbose, asks. [default] (once made fancy). ;)
  98. #digfiler -qa # wat. interesting combo. how displays? brevity mode for the questions, no new lines?
  99. #digfiler -g add ~/.slowfish.fish $digfiles/ # adds new file in the git tracker, and commits.
  100. #digfiler -g push # updates the git repo.
  101. #digfiler -g # same as digfiler -g push.
  102. #digfiler -f # same as doing a digfiler -cvad
  103. #digfiler -pa # displays preview and asks, copy all, or ask for each, or none.
  104. #digfiler -fqe # no ask
  105. #digfiler -fna # ask every
  106. #digfiler -xa # restores all the things, asking one by one. n_n
  107. ### well i can dream. n_n