Commit Graph

40 Commits

Author SHA1 Message Date
b96d32996b *: Wrap lines at 80 columns where appropriate
Wrap lines at 80 columns where appropriate and I had the energy to think
about how/where to wrap.

There are still lines longer than that, which I plan to wrap in the
future. But that is enough for now.
2022-06-23 23:59:00 +02:00
ce4b8fa3dd zsh: Only source *.zsh files
Only source `*.zsh` files to prevent confusion or errors on startup.

Rename all files in 90-external-plugins accordingly.
2022-06-23 23:58:49 +02:00
druckdev
af49c39ba3 zsh: Reorder zshrc components and move stuff
Put the external plugins to the end as well as z-sy-h to the end of the
plugins.
Put the last remaining lines in the zshrc in their own modules.
2020-11-15 01:16:00 +01:00
druckdev
bf46c5f687 zsh: Divide zshrc into zshrc.d
Move every file from plugins into zshrc.d as well as all bigger blobs in
the zshrc into their own files there.
Some stuff is still in there that I am not all too sure where it
belongs. TODO: Move.

Because all external plugins are now sourced over a symlink I had to
create a fork of fzf-tab for now that supports that.
See: https://github.com/Aloxaf/fzf-tab/pull/153
2020-11-10 02:58:22 +01:00
druckdev
9d166a6097 zsh: Use &>/dev/null 2020-11-05 14:45:05 +01:00
druckdev
ddb2114a87 repo: Add XDG user dirs config + Update zsh hashes
Create named directories to every visible folder in $HOME for greater
portability.
Set the CDABLE_VARS zsh option.
2020-11-03 15:11:30 +01:00
druckdev
ec147dfc43 zsh: Move stuff around
Move all environment variables that do not relate directly to zsh but
(in most cases) enforce the XDG Base Directory specification to
zprofile.
This way they are just exported once on login and not every time the
shell starts again.

Move the lines in zshenv that are not directly responsible for moving
the zsh files into $XDG_CONFIG_HOME to their own zshenv there.
2020-11-03 13:59:54 +01:00
druckdev
983e1b0b0b zsh: Fix copy paste error from fe5a65f
Accidentally exported MANPAGER as neovim as well when neovim does not
exist.
2020-11-03 12:32:29 +01:00
druckdev
fe5a65fa23 zsh: Make neovim the man pager
And disable vim's spell check in man pages.
2020-11-03 01:11:40 +01:00
druckdev
f487261365 zsh: Reenable stderred with workaround for gpg
Using stderred's blacklist does not work. The new alias simply removes
the stderred library from LD_PRELOAD for the execution.
2020-11-02 15:22:39 +01:00
druckdev
ff25909ff9 zsh: Disable stderred for now
It seems to be incompatible with my current version of gnupg.
(*** stack smashing deteced ***: terminated)
2020-11-02 02:14:28 +01:00
druckdev
38f1fe4677 zsh: Small improvement
Use the aliases dictionary instead of calling the builtin alias command.
Autoload without alias expansion using the zsh style.
2020-10-24 18:46:20 +02:00
druckdev
84d861112a i3: Update config
Divide config into different sections and move all relevant lines into
those.
Use the $TERMINAL variable wherever possible.
Cleanup some stuff and add a couple of comments.
Add vim modeline to indicate filetype.
Set the key repeat rate.
Ditch scratchpad-terminal.sh:
    The reason why I created that script was that I liked to have
    different bindings for showing and hiding the terminal. At this
    point it just brings too much overhead in a dirty way for a feature
    I do not really need. mod+space can still be used to toggle focus
    and with mod+comma the window is now shown/hidden from/to
    scratchpad.
Use a terminal flag to set the window name instead of using escape
sequences at the start of a new shell.
2020-10-23 20:01:30 +02:00
druckdev
72159411b9 zsh: Delete unused parts and bits
Delete:
 - transfer.zsh
 - zsh-async
 - telegram helper functions + completion
 - TERM hack for kitty terminal
2020-10-06 22:22:42 +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
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
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
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
e792461a20 Do not export zsh internal variables 2020-09-13 04:36:52 +02:00
druckdev
1334803f40 Fix typo 2020-08-28 02:41:44 +02:00
druckdev
11be8376ae Add description to filterHistory script
Add author, date and description to the filterHistory script.
Fix other author and date notes formatting.
2020-08-25 04:23:57 +02:00
druckdev
8bcc737030 Add plugin fzf-tab 2020-08-06 03:42:26 +02:00
druckdev
44d8de0efe Removed unnecesary brackets 2020-08-05 23:56:42 +02:00
druckdev
be3e217231 Check for certain commands before using
Check for existence of certain commands like nvim before using them in
aliases or env vars like EDITOR.
2020-08-04 04:49:30 +02:00
druckdev
5771a7d18f Create zsh_history location if nonexistent 2020-08-04 04:14:48 +02:00
druckdev
f5259b5505 Add fuzzy finder
Add fzf as submodule.
Source it keybindings and completion files.
Adjust dotbot install config to pull fzf binary.
Add symlink to its binary.
2020-08-04 02:54:05 +02:00
druckdev
074ea3382a Add .local/bin to PATH 2020-08-04 02:51:36 +02:00
druckdev
4a99abf72d Do not hardcode vim path 2020-08-03 23:53:14 +02:00
druckdev
3e87ce3fb6 Set zsh option
Substitute aliases internally before completion.
2020-07-31 16:35:02 +02:00
druckdev
6e9dc46fab Add loading of direnv 2020-07-03 02:07:16 +02:00
druckdev
da474b7899 Whitespace changes
Delete unnecessary indentation and convert all spaces to tabs.
2020-06-30 04:10:47 +02:00
druckdev
dad05f4d68 Autoload and bind run-help 2020-06-30 03:08:36 +02:00
druckdev
e8b8c27369 No duplicate completion for diff programs 2020-06-30 03:07:00 +02:00
druckdev
d50eb4a506 Reworked zsh options
Add and rephrased option comments.
unset CDABLE_VARS since it only works with cd and thus leads to problems
when trying to use the notation with other programs (since it became a
habit)
Set new options.
2020-06-30 03:04:22 +02:00
druckdev
a06182153c Compile modules before sourcing them
Add functions comp-conf and comp-source heavily inspired by romkatvs
jit & jit-source.
Replace every call to source with comp-source.
Remove existence check since it is done in comp-source.
Replace still existing readable checks with existence checks.
2020-06-28 18:32:11 +02:00
druckdev
e668feb9db Update p10k to v1.11.0
Update powerlevel10k to v1.11.0.
Include patch of applied changes to the configuration created by the
wizard.
2020-06-26 00:03:57 +02:00
druckdev
31a4bc0768 Use st as terminal
Switch from gnome-terminal to st (see fork on github).
Open new terminal by default in the same working-dir as current window.
Modify scratchpad-terminal to work with every terminal.
2020-06-24 16:05:34 +02:00
druckdev
0c743950ac Initial commit 2020-04-23 14:50:36 +02:00