Commit Graph

87 Commits

Author SHA1 Message Date
40416ebd9c *: Move third-party plugins into .local/share/
Move all submodules that were under .config/ into .local/share/ (alias
XDG_DATA_HOME). I got convinced that they feel out of place in .config/.

Instead of updating the paths from which they are sourced (e.g.
`TMUX_PLUGIN_MANAGER_PATH` or `packpath`), keep a symlink in the old
location that points to the new one. This has the benefit that
everything related to one program remains mostly accessible from the
same place instead of spreading everything out.

I am still unsure if I really like the new location as I affiliate user
**data** more with something that has to be backed up as it is
non-recreatable. And moving them out of .config/ had the reasoning that
they are not my config files but rather data from the internet that
could be retrieved when deleting. But using XDG_CACHE_HOME seems
unreasonable as well.
We'll see.

Move the fzf-repo from ./local/bin/ to .local/share/.

Update all relative symlinks' (e.g. fzf) targets.
2022-07-12 21:00:01 +02:00
1ff96687d3 zsh:syntax-highlighting: Update to include 0ddb1a8
Update zsh-syntax-highlighting to include 0ddb1a8d5120 as this fixes a
highlighting bug with zsh-autosuggestions introduced with zsh 5.8.1.
See following issues:
 - 662 in zsh-autosuggestions
 - 857 in zsh-syntax-highlighting
2022-02-28 12:11:44 +01:00
cb7263e77d *: Update plugins and other submodules 2022-01-29 22:42:33 +01:00
77b2d63341 zsh:autosuggestions: Use own fork for now
See https://github.com/zsh-users/zsh-autosuggestions/pull/621

Set experimental values to the new configuration options.
2021-07-22 15:48:36 +02:00
f0ebab3ca2 repo: Update submodules 2021-03-08 01:05:32 +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
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
5c19bd6414 zsh:plugins: Update fzf-tab & p10k submodules 2020-11-07 03:16:15 +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
42cbed25b2 zsh:alias:zathura: Move output redirection to end
Move the output redirection of the zathura-pdf alias from the front to
the end to not confuse zsh-syntax-highlighting.
2020-11-07 02:17:17 +01:00
druckdev
6ff87f1e9c zsh: Add vimdiff alias that displays whitespaces 2020-11-05 14:49:45 +01:00
druckdev
76920ea53e zsh: Add cd wrapper for calls without arguments
Add a cd wrapper that when called without arguments, moves into the root
of the current repository instead of HOME. (Except when already there)
2020-11-05 14:42:33 +01:00
druckdev
74dd5de08d zathura: Dark colors + Make default pdf program 2020-11-05 12:51:38 +01:00
druckdev
1491c998a3 zsh:profile: More XDG Base Dir env-vars + wgetrc
Use an environment variable and a wgetrc instead of an alias for wget to
enforce the XDG Base Directory Specification so that script calls
respect it too.
2020-11-05 12:37:19 +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
121900c093 zsh: Add mvln() that moves a file but keeps a link 2020-11-03 14:23:54 +01:00
druckdev
d7739bb16a zsh: Add more aliases that enforce XDG Base Dirs 2020-11-03 14:22:22 +01:00
druckdev
13a9b036ff zsh:alias: Set a reasonable time format for date 2020-11-03 01:35:17 +01:00
druckdev
0fe0679276 all: Update submodules 2020-11-03 00:21:46 +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
db5fe9fcd3 zsh:alias: Small bug fixes
Use XDG_CONFIG_HOME instead of hardcoding the tmux config path.
Simplify the battery alias a lot.
Fix quotation issues in url{dec,enc}.
2020-11-02 03:42:21 +01:00
druckdev
f0a0ba06c2 zsh:functions: Use portable syntax for functions
Use a portable syntax for the function headers.
Since I do not know where these functions could end in the future it
makes it easier and more consistent to use the portable syntax.
2020-11-02 02:04:38 +01:00
druckdev
6eac13011a zsh: Add named directory for work 2020-11-02 02:03:22 +01:00
druckdev
ef13b24e80 zsh:alias: Update named directories
Update named directories location and rewrite the hash for wise and sose
to use a solution without tail but only the zsh glob power.
TODO: Find solution to get rid of the `echo` as well.
2020-10-31 22:34:13 +01:00
druckdev
d1869afff6 zsh:alias,functions: Add lowres, crypt-{,u}mount 2020-10-26 13:46:25 +01:00
druckdev
1b382f4f85 zsh:alias: Do not use aliases dictionary
Just use the command name instead of trying to directly expand
previously defined aliases for the command. Nested aliases still work
like this and using the dictionary breaks some stuff like
syntax-highlighting.

Put xxd into quotes just to be consistent.
2020-10-25 02:20:18 +02:00
druckdev
fbdf7252ec zsh:alias: Remove trash-restore alias
trash renamed the command. The alias is now useless/breaks stuff since
restore-trash does not exist anymore.
2020-10-25 02:12:14 +02:00
druckdev
6b7827dc2e zsh:keys: Add edit binding and use Ctrl
Add binding that opens the current command in the editor.
Use Ctrl instead of Alt for shell bindings to be consistent.
2020-10-24 18:54:24 +02:00
druckdev
f311fc8a35 zsh:keys: Stay with the flow (vim history scroll)
These combine nicely with the bindings in fzf when searching through the
history.
2020-10-24 18:51:13 +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
0424941699 zsh: Rename autoloadable function ls
Rename to avoid confusion and make the config more transparent.
2020-10-06 03:54:01 +02:00
druckdev
e339c120c3 zsh:keys: Rework rationalize_dots/_expandDots
Restart from different implementation, since nicoulaj's dotfile repo
seems to be offline and I prefer majutsushi's cleaner version.

Add a slash after the dots since normally I continue on typing the path
and it does not hurt if I don't.
2020-10-06 03:02:55 +02:00
druckdev
5c784dae83 zsh:keys: Refactor and add comment 2020-10-06 02:11:42 +02:00
druckdev
5ca84d8ec9 zsh:alias: Quote nested aliases with single quotes
Use single quotes for nested aliases so that the alias is only then
expanded when the command is used. By that we ensure that the order of
the aliases in alias.zsh is irrelevant.
2020-10-05 21:31:52 +02:00
druckdev
ce10c25a59 zsh:keys: Add vim like text object selection
Add vim like text object selection bindings like ci(, ya", etc..
Copied from softmoth/zsh-vim-mode. Since all the other interesting parts
are already covered (for example by p10k) in my config, sourcing the
entire plugin would not make sense.
2020-10-05 14:56:26 +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
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
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
9ae3de7d64 zsh: Add git alias for commiting with last message 2020-09-27 18:36:35 +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
c00d8df9d0 zsh: Update dotfile hash 2020-09-24 03:45:46 +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
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
253501a230 Add git-submodule-rm
Add function git-submodule-rm that deinits and removes a submodule from
a git repo.
2020-09-13 17:14:50 +02:00