Commit Graph

1681 Commits

Author SHA1 Message Date
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
29d28a25ee polybar: Use st to start nmtui 2020-09-28 18:10:05 +02:00
druckdev
1d3adc30e5 polybar: Make hardcoded paths dependant from XDG
Instead of hardcoding the paths of all the scripts, use env variables
that are set in launch.sh. This way the config also works with
XDG_CONFIG_HOME not set to ~/.config.
Sadly polybar only accepts references that stand on their own.
(So something like ${env:XDG_CONFIG_HOME:~/.config}/polybar/<script>
does not work.) Hence the mess with the associative array and the
variables for every module.
2020-09-28 18:08:03 +02:00
druckdev
abf4ad7333 firefox: Add user.js
Initial commit of user.js from a fresh install with my goto options set
in the GUI.
TODO: comment
2020-09-28 16:18:46 +02:00
druckdev
11819cc359 vim: Add more binds for split view navigation 2020-09-28 04:13:45 +02:00
druckdev
093c3a6f9c git: Highlight current match in pager 2020-09-28 04:12:40 +02:00
druckdev
51797397f6 zsh: Convert all oneline functions into aliases
Convert all functions that are pretty much oneliners and do not contain
any real logic into aliases by using anonymous functions.
I am not too sure if I will keep it this way.
2020-09-28 04:07:56 +02:00
druckdev
2540b917c3 zsh:autoload:ls: Fix behavior when -d is given 2020-09-28 03:23:11 +02:00
druckdev
86ad1a8536 zsh:autoload:ls: Rephrase comment 2020-09-28 03:19:12 +02:00
druckdev
6fbe63be67 zsh:autoload:ls: Set vim filetype 2020-09-28 03:17:20 +02:00
druckdev
0cff51f17d zsh: Add alias for listing zsh options + values 2020-09-28 02:14:22 +02:00
druckdev
285863cb4f zsh:alias: Refactor
Reorder categories.
Remove unused aliases and PATH modification.
Refactor to keep lines under the maximum of 80 columns.
Use brace expansion where an alias has different names.
Simplify method for finding the wise and sose hash.
2020-09-28 02:06:08 +02:00
druckdev
6158900925 zsh: Don't autoload completion and hidden files
Ignore files that are hidden and functions that follow the naming
convention of completion functions.
2020-09-27 18:39:43 +02:00
druckdev
9ae3de7d64 zsh: Add git alias for commiting with last message 2020-09-27 18:36:35 +02:00
druckdev
10c8d7097a meta: Add commit-msg git hook 2020-09-25 02:27:57 +02:00
druckdev
f36c83254b vim: Modify pane switching keybindings
Control hjkl is faster to type, especially when changing more than once.
2020-09-25 02:17:07 +02:00
druckdev
7aed147400 zsh: Do not complete arguments twice for trash
Also cleanup the comments around that section a bit.
2020-09-25 01:36:40 +02:00
druckdev
d7fc680abe zsh: Refactor functions
Combine functions{Pre,Post}.zsh into functions.zsh. There is no reason
or sense in splitting the functions like that and differentiating
between functions that should be loaded before and after sourcing the
aliases.

Rename the functions from funcPre, making their aliases superfluous.
2020-09-25 01:26:17 +02:00
druckdev
11ec8b93fb zsh: Heavy improvements to ls_show_hidden
Autoload the function instead of declaring it directly.
Add functionality for multiple targets. It should now pretty much
perform like `command ls`.
Refactored code to use more zsh extensions like globbing instead of
parsing the output of `ls` making it a lot faster.
2020-09-25 01:09:59 +02:00
druckdev
b301cb5045 vim: Add substitution binding for visual mode too 2020-09-25 00:58:21 +02:00
druckdev
03e31ee636 git: Add renamings of files as jump-point 2020-09-25 00:52:13 +02:00
druckdev
436c17c2f5 git: Jump to commit instead of Date
When jumping to commits using "Date", the commit and (more importantly)
the author were not shown.
2020-09-25 00:39:39 +02:00
druckdev
c00d8df9d0 zsh: Update dotfile hash 2020-09-24 03:45:46 +02:00
druckdev
4d3c9f2cc4 zsh:filterHistory: Escape {B,E}OL markers
Especially the dollar sign is used often making this important. Commands
containing one of both were not deleted properly.
2020-09-24 03:41:48 +02:00
druckdev
f69efff5c0 zsh:glog: Pipe preview through diff-so-fancy 2020-09-24 03:30:53 +02:00
druckdev
7e0e0f5baf git: Enable jumps between different files in diff
Jump between file sections and commits by using n and N. Taken from:
https://github.com/so-fancy/diff-so-fancy/blob/eef379ee43f86/pro-tips.md

Remove FX flags since they are incompatible with the pattern search:
When showing a small change that fits on less than the screen height,
the rest of the screen is filled with ~ lines instead of quitting the
pager. This behaviour is annoying and thus the flags are deactivated.
Since git adds them per default they have to be explicitly disabled.
2020-09-24 03:24:56 +02:00
druckdev
f6d1bbb19d git: Add diff-so-fancy as submodule
Instead of relying on diff-so-fancy being installed already deliver it
with these dotfiles.
2020-09-24 02:55:49 +02:00
druckdev
8db0d4c368 git: Autostash when rebasing
(When necessary) Automatically stash changes before rebasing and pop
them back from stack when done.
2020-09-23 03:07:07 +02:00
druckdev
bcdbe8039b ranger: Use bat to preview text files (WIP)
wrap_plaintext_previews has to be disabled, otherwise bats output is
completely messed up. On the other hand I'd like to have it turned on
since it is useful when the usually pretty long file type classification
is used as preview.
2020-09-23 03:01:24 +02:00
druckdev
a285fe2a1c zsh:p10k: Disable time on right side 2020-09-23 02:44:01 +02:00
druckdev
04ea8e9a89 zsh: Cleanup conf() a bit
Add more editor fallback values.
Cleanup comments and fix indentation.
Do not check for existence of specified config file. (Since the config
file can now be created that way)
"Downgrade" all file checks for readability to checks for existence,
since this should be handled on the editor layer.
2020-09-23 02:36:11 +02:00
druckdev
0a2d70412e vim: Move autosource of config into ftplugin
Instead of only sourcing the vim config when vimrc or $MYVIMRC (xdg.vim)
is edited, reload always when saving a vim file.
This is a test. But I think it makes sense since I never edit a vim file
that is not sourced by my config in any way. Thus reloading should be
always appropriate.
2020-09-23 02:25:04 +02:00
druckdev
1c2035f458 vim: Add bind for deleting into system clipboard 2020-09-23 02:07:23 +02:00
druckdev
7d121cae18 vim: Source edited vim config upon saving 2020-09-23 02:04:21 +02:00
druckdev
2789836743 vim: Explicitly load filetype plugins and indent
My system installation did that automatically but apparently that is not
the norm.
2020-09-23 01:45:31 +02:00
druckdev
d5e8135cac vim: Move language specific bits into ftplugin/
Move stuff for specific languages executed by autocommands into own
filetype plugins to keep the vimrc cleaner.
2020-09-23 01:16:17 +02:00
druckdev
97260306fb vim: Reorder config and create autocommand section
Move everything that is not strictly part of "Aesthetics" out of there.
2020-09-22 13:34:43 +02:00
druckdev
95300f221c zsh: Remove remnant from d5dda4d
Forgot to remove the source of zsh-history-substring-search in d5dda4d.
2020-09-22 01:23:28 +02:00
druckdev
0788926c8c zsh: Autoload big functions 2020-09-22 00:28:28 +02:00
druckdev
16896efa02 Replace cformat() with a clang-format wrapper
Replace the function with extra functionality with a wrapper for
clang-format that looks for the style flag and substitutes a given
filename with its parsed content.
2020-09-21 22:51:03 +02:00
druckdev
fdfa8a5f8a Cleanup zsh functions and add unbkp()
Add unbkp() that reverses bkp().
Use shorter zsh syntax for disowning a background job.
Add usage string to mangrep.
Expect clang-format config to be in XDG_CONFIG_HOME. Add functionality
of comments.
Use `command` where we want a command to be taken as external.
2020-09-21 18:06:55 +02:00
druckdev
da90d3f744 Deactivate sorting in fzf when using glog 2020-09-21 17:44:45 +02:00
druckdev
9c16d0f3aa Set copyindent in vim 2020-09-21 17:39:41 +02:00
druckdev
6bfea69a24 Improve rangers CR2 image preview performance
Make rangers CR2 image preview faster by displaying an extracted preview
JPG using exiftool instead of converting it.
2020-09-20 03:55:39 +02:00
druckdev
06f0b1c40f Add ranger preview script
Add ranger (1.9.3) default scope.sh.
Generated by `ranger --copy-config=scope`.
2020-09-19 16:01:02 +02:00
druckdev
f8c8a290e5 Add git configurations for submodules
Add git configurations for better work with submodules taken from
https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407.

Add alias that syncs submodules when pulling.
Include information of changes in submodules in diff and status.
2020-09-15 10:42:27 +02:00
druckdev
eff7453aa8 Add a bunch of TERMs to dircolors config 2020-09-15 10:40:10 +02:00
druckdev
3227d7ed82 Quit ranger with escape
I had to use the latest master commit (v1.9.3-99-g240d8a0e) for this to
work since apparently there is a bug in v.1.9.3 that ignores the binding
of ESC.
2020-09-15 10:36:43 +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