aboutsummaryrefslogtreecommitdiff
path: root/modules/zsh.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/zsh.nix')
-rw-r--r--modules/zsh.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/zsh.nix b/modules/zsh.nix
index 9389d51..3aca8a7 100644
--- a/modules/zsh.nix
+++ b/modules/zsh.nix
@@ -6,6 +6,10 @@ in {
options.zsh.enable = lib.mkEnableOption "Configure zsh";
config = lib.mkIf cfg.enable {
+ home.packages = with pkgs; [
+ zoxide
+ ];
+
programs.zsh = {
enable = true;
enableCompletion = true;
@@ -18,14 +22,24 @@ in {
zstyle ':completion:*' special-dirs true
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' add-space false
+
+ # Case-insensitive completion
+ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
+
+ # vim keybdings
+ bindkey -v
+
eval "$(zoxide init zsh)"
'';
+ shellAliases = {
+ ls = "ls --color=auto";
+ };
+
zplug = {
enable = true;
plugins = [
{ name = "mafredri/zsh-async"; }
- { name = "zpm-zsh/colorize"; }
{ name = "sindresorhus/pure"; tags = [ "as:theme" "use:pure.zsh" ]; }
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
{ name = "zsh-users/zsh-autosuggestions"; }