1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
f520784d9b
zsh: LESS with more usability
These defaults are heavily inspired by the default of $SYSTEMD_LESS
provided by systemd themselves.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-04 11:21:55 +00:00
90038f8795
zsh: Migrate zdharma -> zdharma-continuum
https://github.com/zdharma-continuum/zinit/wiki/Migration-to-zdharma-continuum
https://www.reddit.com/r/zsh/comments/qinb6j/httpsgithubcomzdharma_has_suddenly_disappeared_i/

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-25 11:12:41 +00:00
7775fb62e4
zsh: Disable zsh fast-syntax-highlighting chromas
This fixes `zi` being extremely slow in the shell.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-25 11:02:15 +00:00
a48288ad50
zsh: Simplify fish-like compressed working directory
Works the same, is simpler and less prone to doing the wrong thing,
hopefully...

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-25 11:00:40 +00:00
895d0ff0aa
zsh: Print normal in RPROMPT in Vim mode
Change the cursor to an `_` too, to make it abundantly clear that the
mode has changed. Hopefully this stops me screwing up and accidentally
entering vim mode without realising.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-10-18 10:08:33 +00:00
7be83b7b70
zsh: Fix fzf-history-search over SSH
Reorder and remove duplicate keybinds

Signed-off-by: Joe Groocock <me@frebib.net>
2021-10-18 10:07:48 +00:00
6f655c20aa
zsh: remove fzf-tab plugin
This plugin is more of a hindrance than a help, even though fzf is still
really useful; just not here.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-02-01 13:50:25 +00:00
9793eb491b
zsh: remove unused x-bash-backward-kill-word
The standard backward-delete-word works just fine, so this is redundant

Signed-off-by: Joe Groocock <me@frebib.net>
2021-02-01 13:49:49 +00:00
f6b863adf3
zsh: add bash-insulter plugin
Should lighten the mood when I inevitibly fuck up typing a command.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 17:12:41 +01:00
f4b03038ee
zsh: zshenv source all environment in a loop
source only accepts one argument, so it must be called once for each
environment file.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 17:04:05 +01:00
a2ad4853ed
zsh: use ZDOTDIR over XDG_CONFIG_HOME
ZSH is programmed to prefer this ordering, so honor that in the ZSH
configuration as well.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 16:38:34 +01:00
ecb282cabb
zsh: remove unused edit-command-line zmod
This was added previously for Ctrl+V for vim editing of the
command-line, but the key-bind was removed in
ce595c81b6 but this was forgotten.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 16:37:59 +01:00
6d33d4685c
zsh: switch to zinit & zsh-fsh
These are significantly faster to load, and are actively maintained.
Functionality is almost identical from a usability perspective.
The primary motivation for this change is the several orders of
magnitude faster shell loading times, which should help with
productivity on overloaded and underpowered hardware.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 16:34:33 +01:00
5ace0bb7f4
zsh: trysource various ZSH plugins
These vary by OS/distribution and even between devices depending on what
is installed. Most of these are optional anyway so make a best-effort
attempt to load them.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 12:07:09 +01:00
c719fad76a
zsh: skip loading environment if ZDOTDIR is set
Loading the environment on every shell invocation is slow. We can speed
up shell startup a little by skipping this for ever shell because it's
loaded on login by systemd.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 12:03:27 +01:00
ab4bb4e480
zsh: enabled extendedhistory
This saves timestamps and command durations for all history entries

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-19 12:28:13 +01:00
09f36fa202
zsh: z-sy-hl redrawhook feature merged
Use master branch that contains the redrawhook feature and other fixes

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-18 13:29:07 +01:00
9316d74027
aliases: fix 'dotfiles' and 'aliases' alias
After moving dotfiles around, these aliases became out of sync.
Dynamically detect the path of the 'aliases' file, and set 'dotfiles' to
use the XDG config directory.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 15:59:45 +01:00
521f462141
systemd: replace profile.service with systemd-environment.d generator
This moves loading of the environment variables out of the normal
service startup flow and has systemd load the variables early.
Shim ZSH to load the environment.d configuration when running without
systemd.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 12:19:09 +01:00
60bf423556
dotfiles: move .config/* to root
This seems to make more sense. Almost all files were within .config
anyway.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 22:42:14 +01:00