Commit Graph

90 Commits

Author SHA1 Message Date
98b33cc615 meta:archive: Get link targets by parsing config
Instead of only archiving the ~/.config/*, now parse `install.conf.yaml`
and extract the link targets dynamically.
2022-03-31 03:09:30 +02:00
81c07bd3cf meta:archive: Keep tars exit code on failure 2022-03-31 03:06:03 +02:00
27d537a02a install: Check if zsh exists before setting shell 2022-02-02 16:46:27 +01:00
cb7263e77d *: Update plugins and other submodules 2022-01-29 22:42:33 +01:00
e14758170e meta:git-remote: Add origin as fallback remote
In the rare case that no remote url containing `druckdev/dotfiles`
exists, this should still (try to) work.
This could be the case if I rename my username or the repo or in the
even rarer case that somebody forks this... Quite ambitious.
2022-01-22 00:13:55 +01:00
4c3dfc4c52 meta:git-remote: Don't hardcode origin as remote
As I know how the url should look like I can allow the default remote
being named differently.
2022-01-22 00:02:36 +01:00
88bd0bcf25 meta:install: Create xdg-user-dirs 2022-01-21 16:39:04 +01:00
89d8d83410 meta:install: Link .local/share/direnv/ 2021-07-27 01:07:39 +02:00
9c6fac249f meta:install: Allow chsh to have std{in,out,err}
Since potentially it asks for a sudo password.
2021-07-27 00:09:40 +02:00
b1d396babd *: Use /usr/bin/env in shebangs for bash & zsh
To increase the portability (OSX for example has zsh under `/bin/zsh`).
2021-07-14 13:48:21 +02:00
0480b98812 meta:install: Create GNUPGHOME if nonexistent
This is more of a one-time step to be done when installing, than every
time on login.
2021-07-07 11:56:57 +02:00
9a7c5e6c47 meta:git-hooks:commit-msg: Fix typo
I have no idea how I have not noticed this yet, as apparently every time
I wrote a commit message that contains a body and not just a subject I
got an error message complaining that the first word does not exist as a
command. (With the exception of when it actually is, but then executing
arbitrary code)
2021-06-30 12:51:29 +02:00
ec0e23d07b gnupg: Add gpg-agent configuration stub 2021-06-04 11:55:46 +02:00
eed998b60f meta:install.conf: Do not hardcode zsh's path 2021-02-26 12:27:17 +01:00
03b6ba72ae meta:hooks:commit-msg: Break on first comment
Because `git diff --staged -u | head -1` returns nothing when rebasing
the hook checked the line length of the commit changes (verbose commit).
2020-12-23 19:45:56 +01:00
1e46c7e19a meta:install.conf: Update fzf path 2020-12-22 16:46:56 +01:00
0e1c14c3e7 meta:git-remote: Replace here strings with printfs
Some implementations of `sh` seem to not support it.
2020-12-22 16:44:24 +01:00
914e8a1992 repo: Update submodules & cleanup gitmodules
Update all submodules to the newest commit.
Change submodule names in `.gitmodules` from local path to repo names.
Sort and group `.gitmodules` by program that uses it.
Remove the clone of 'fzf-tab' as my pull request got merged.
2020-12-22 16:22:33 +01:00
druckdev
6cac0dc53a git: Show patch of the changes in commit message
The changes are only shown in the editor and do not land in the final
commit message.

For that setting the git-commit-last-msg function and the commit-msg
hook had to be updated.
The function is now a standalone function instead of anonymous and
uses every line until the first comment in COMMIT_EDITMSG discarding the
new information too.
The hook breaks now when checking line lengths when the changes start
since for some weird reason they are passed together with the rest of
the message instead of being deleted like the comments.
2020-11-23 01:27:51 +01:00
druckdev
18d39e4d95 meta:install: Change shell and git remote to ssh 2020-11-10 03:03:56 +01:00
druckdev
301b109f0d meta:archive: Change date format in filename 2020-11-09 13:47:26 +01:00
druckdev
75a8af2d14 repo: Move fzf to non zsh-dependant location
Since fzf is not really only a zsh plugin this moves it to .local/bin.
I am not quite sure it will stay there.
The submodule was also updated in this process.

Update all links and references.
Add .local/share directory that contains the man pages. By that dotbot
just globs all of them and symlinks them. This makes it more modular and
a bit more transparent on how an installed system looks like, just by
looking through the repo structure.
2020-11-07 03:07:59 +01:00
druckdev
34219051e3 nvim: Fix coc.nvim and install it automatically
Fix bug introduced in c0f7b43 that stopped the sourcing of coc.nvim in
neovim.
Add command to the dotbot installation config to install coc.nvim
automatically after pulling its submodule.
2020-11-03 00:25:00 +01:00
druckdev
03524a2b35 meta:install: Ditch check for make existence
The command will fail anyway. This just makes it more verbose.
2020-11-03 00:23:02 +01:00
druckdev
08c5c66e1e X11: Move pieces from i3 and zshenv into xinitrc
Move everything that is desirable independent of the WM or shell into
xinitrc.
Move .Xresources and .Xmodmap into .config/X11.
Remove all unneeded GNOME bits from i3 config.
Make compositor launch script portable.
Add locker symlink and launch.sh similar to the compositor.
2020-10-31 22:33:26 +01:00
druckdev
feec02e267 X11: Add .xinitrc
This is just a slightly refactored version of /etc/X11/xinit/xinitrc.
2020-10-31 02:16:45 +01:00
druckdev
67c30e9842 meta:hooks:commit-msg: Allow dots and slashes
Allow dots and slashes in the program specification in the subject.
2020-10-26 15:04:20 +01:00
druckdev
0db8155002 meta:hooks: Refactor commit-msg (sh -> bash)
Refactor commit-msg to reduce redundancies by splitting up the pattern
into the different 'levels'.
For the array the change from /bin/sh to /bin/bash was necessary.
Because of that: Change all `test` occurrences to [[ ]] for performance.
2020-10-26 15:00:38 +01:00
druckdev
3c6c37f235 meta:hooks: Refactor pre-commit + check renaming
Refactor the script to match my coding style more and update the
comments.
When checking the filenames for non-ASCII characters, check also
renaming of files instead of only additions.
2020-10-24 20:04:30 +02:00
druckdev
07a9f80c19 meta:hooks: Add pre-commit example script 2020-10-24 19:34:47 +02:00
druckdev
552b467102 meta:commit-msg-hook: Add more special characters 2020-10-10 13:26:42 +02:00
druckdev
9bb96e26e7 git:hook:commit-msg: Allow capitals and numbers
Allow capitals and numbers in the program name specification in the
subject line.
2020-10-06 00:59:13 +02:00
druckdev
d0da230266 git:hook:commit-msg: Allow some special characters
Allow some special character in the program name specification in the
subject line.
2020-10-03 01:30:04 +02:00
druckdev
4cb445c2b5 shell-scripts: Use [[ instead of [ where possible
Replace all occurrences of [ with [[ in bash and zsh scripts and
configs.
Performance wise it makes sense to use the builtin instead of calling an
external command also when from a functionality stand point `test` would
suffice.
2020-10-03 01:29:29 +02:00
druckdev
10c8d7097a meta: Add commit-msg git hook 2020-09-25 02:27:57 +02:00
druckdev
c5ed649d38 Change return code of dotbot installation command
The build step should not skip silently when make is not an available
command.
2020-09-15 03:44:10 +02:00
druckdev
b444a942c2 Make dotbot helper-scripts executable 2020-09-15 03:39:46 +02:00
druckdev
9566bd96c3 Improve meta/submodules --init
Keep output of git "live" (Meaning that one can see live what submodule
is currently pulled) by not saving it first and then grepping but by
catching a failing grep when the output of git was empty.
2020-08-25 14:24:06 +02:00
druckdev
b384854a4f Move long commands from dotbot config into scripts
Move long commands from the dotbot config into own scripts to keep the
install.conf.yaml more readable.
Fix bug that the submodule init step fails when already done once since
then the grep statement fails because there is no output.
2020-08-25 14:24:04 +02:00
druckdev
3c65e1a552 Move dotbot related stuff into meta/ 2020-08-25 13:15:06 +02:00