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

12 Commits

Author SHA1 Message Date
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