Commit Graph

852 Commits

Author SHA1 Message Date
8c1f4b20f5 git: Add git-filter-repo as submodule 2022-02-03 18:34:33 +01:00
00355ec6f7 git: Enable rerere
Activate recording of resolved conflicts, so that identical conflict
hunks can be resolved automatically, should they be encountered again.
2022-02-03 18:31:20 +01:00
771232217e zsh:zprofile: Always export $LESS* variables 2022-02-03 18:31:10 +01:00
98e9c8abed less: Display ANSI colors by default 2022-02-03 18:31:00 +01:00
fe16087da4 less: Enable mouse-support 2022-02-03 18:30:59 +01:00
00de841771 zsh:zprofile: Do not set $MANPAGER to nvim
Do not set `MANPAGER` to `nvim` as `nvim-man` is used already and in the
case that it does not open `nvim` I want to use `less` as **pager**.
This makes it possible to use `man -- <page>` as 'hack' to view the page
in `less` for example if a real pager is desired because of the loading
time (e.g. `zshall`).
2022-02-03 18:30:57 +01:00
6d64a0e609 zsh:funcs:nvim-man: Format nvim commands 2022-02-03 18:30:56 +01:00
dd7302f311 zsh:funcs:nvim-man: Use subjunctive in comment 2022-02-03 18:30:54 +01:00
5312e42a09 zsh:funcs:nvim-man: Use [[ for option check
"${1#-}" is not properly parsed in `((` when long options containing a
`=` are passed (`bad math expression: operand expected`).
2022-02-03 18:30:42 +01:00
3dbffbc08e zsh:funcs:nvim-man: Check if stdout is terminal
If `stdout` is not a terminal, `command man` should be used as `nvim`
won't work.
2022-02-03 18:30:39 +01:00
46605c7a84 zsh:funcs:nvim-man: Use man if option is passed
If an option without arguments like `--version` is passed, `nvim-man`
should use `command man` as well.
2022-02-03 18:30:38 +01:00
e55652fd44 zsh:funcs:nvim-man: Move page existence check call
Check for the existence of the page only if `nvim` would be executed.
2022-02-03 18:30:36 +01:00
1be26adfc9 zsh:funcs:nvim-man: Use minimal config + scrolloff
Load only the `man.vim` plugin, nothing else. This should speed up the
startup a bit. It will never be as fast as `less` though, as it loads
the whole file first.
2022-02-03 18:29:37 +01:00
27d537a02a install: Check if zsh exists before setting shell 2022-02-02 16:46:27 +01:00
9817ef3f63 zsh:autoload:crypt-*: Rename to crypt-{open,close}
Rename `crypt-{,u}mount` to `crypt-{open,close}` as in these functions a
lot more happens than just {,un}mounting.
2022-02-01 01:18:15 +01:00
eac6953150 zsh:autoload:crypt-*mount: Get basename natively
Use zsh's builtin history expansion modifiers `:t` to get the basename
of the block device.
2022-02-01 01:15:42 +01:00
48090260aa git: Set branch.autosetuprebase to always 2022-02-01 01:10:56 +01:00
8da651fd27 LICENSE,git: Use real name instead of pseudonym
Also specify email address in the LICENSE.
2022-01-31 13:04:43 +01:00
a7949ca77d LICENSE: Specify range of years 2022-01-31 13:00:53 +01:00
7f52c7a4cb git,zsh:autoload: Move git-track into own function
Move `git-track` into its own autoloadable function.
This way it is
better maintainable as in one-liner format and brings the possibility of
having more complexity (e.g. for better portability).
By that it is also now executable as `git-track` as well as `git track`
as before.
2022-01-31 12:50:54 +01:00
271f5bcf25 zsh:funcs:crypt-*mount: Set pipe_fail
Set `pipe_fail` so that if for example the `grep` fails while getting
`$mount_point`, the function returns early.
2022-01-30 00:37:13 +01:00
4c9bb36d33 zsh:funcs:crypt-umount: Fix $mount_point
Get `$mount_point` before unmounting making it then disappear naturally.
2022-01-30 00:34:50 +01:00
4623688fa8 zsh:funcs:crypt-umount: Fix typo
Remove the basename of `$mount_point` as this is the actual symlink name
in `~/mounts/`.
2022-01-30 00:33:39 +01:00
e9c4d7f608 vim:funcs:crypt-*mount: Split local declarations
Split up local declarations into definition and declaration to get the
exit code of the command substitution.
With `err_return` the function now aborts early if `$mount_point`
couldn't be set properly.
2022-01-30 00:09:08 +01:00
546b37681f zsh:funcs:crypt-*mount: Create mountpoint symlink 2022-01-30 00:08:09 +01:00
c2c0d4fc04 zsh:funcs:crypt-*mount: Test for block special 2022-01-30 00:04:22 +01:00
94d4a32a43 zsh:funcs:crypt-*mount: Use err_return option 2022-01-30 00:04:22 +01:00
f37afc9400 zsh:funcs:crypt-umount: Define $name variable 2022-01-30 00:04:22 +01:00
cb7263e77d *: Update plugins and other submodules 2022-01-29 22:42:33 +01:00
eaa4b938c3 bin: Add timetracking 2022-01-28 16:35:57 +01:00
0e1712b4c0 zsh:autoload: Move git functions into git/ 2022-01-28 16:35:56 +01:00
fb92842d0a zsh:autoload: Include all subdirs in autoload/
Make it possible to organize autoloadable functions.
2022-01-27 14:43:57 +01:00
8526727cc5 vim:plugins: Add cocci-syntax 2022-01-27 10:47:24 +01:00
951707e2a5 vim:plugins: Add markdown-preview 2022-01-27 10:41:07 +01:00
b72b112426 X11:xinit: Check for existence of xcape
Even if it is commented right now I want it to work correctly when I
uncomment it.
2022-01-24 13:22:22 +01:00
9aab0af109 X11:xmodmap: Keep Caps_Lock on Shift+Caps
Remove other Caps_Lock binding.
2022-01-24 13:20:30 +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
5155cbbed1 vim:keys: Bind <leader><Esc> to exit terminal
Bind `<leader><Esc>` to exit terminal-mode.
2022-01-21 19:13:24 +01:00
c2e21d23c0 vim:plugins: Only add gutentags with ctags
Only add gutentags with `ctags` as valid executable. Otherwise vim will
complain.
2022-01-21 16:42:25 +01:00
88bd0bcf25 meta:install: Create xdg-user-dirs 2022-01-21 16:39:04 +01:00
1e3aa5108e xdg-user-dirs: Move media folders into ~/media/ 2022-01-21 16:37:05 +01:00
8ffd4df1fa vim:keys: Add insert mappings for better undo
The bigger `inoremap <expr> ...` binding is taken from the help page
`:help i_ctrl-g_u`.
2022-01-20 16:05:47 +01:00
2dcece04f3 zsh:alias: Add further git aliases 2022-01-20 16:02:24 +01:00
dcea7c9531 vim:keys: Add git bindings for add and commit
Also add `g` as prefix to the already existing `:Gcd` binding.
2022-01-20 15:59:45 +01:00
851674efeb zsh:autoload:glog: Fix syntax w/ bash login shell
When bash is set as standard shell, fzf passes the commands to it and
bash throws a syntax error because of the missing semicolon.
2022-01-14 15:02:50 +01:00
ef7196f2ca git: Add fixes alias and pretty format
This allows printing for 'Fixes:' tags as mentioned in the kernel
documentation:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
2022-01-12 12:41:22 +01:00
157c2ae43f git: Abrreviate commit SHA-1 IDs with 12 chars 2022-01-12 12:36:07 +01:00
cdd727382c vim:ftplugin:python: Use indent as foldmethod 2022-01-03 01:23:56 +01:00
3c40002a4a git: Sort config lines and fix indentation 2022-01-02 23:28:34 +01:00