My home-manager zsh config
Find a file
jiriks74 8813887171
All checks were successful
Perform checks / formatting (push) Successful in 55s
Perform checks / nix_flake_check (push) Successful in 1m0s
fix(aliases): Move kitten ssh alias from ssh to kssh
There are issues with some servers. For example Element14 doesn't show
your input, sometimes `systemd` is kinda broken, etc.
2024-12-23 04:30:03 +01:00
.forgejo/workflows fix(ci): Remove nix cache action as it barely works 2024-12-19 11:15:31 +01:00
.gitignore Initial commit 2024-03-04 12:11:09 +01:00
flake.lock automated: Update flake.lock 2024-12-19 10:18:34 +00:00
flake.nix feat: Split the config into default and withPackages 2024-11-20 12:19:35 +01:00
LICENSE Initial commit 2024-03-04 12:11:09 +01:00
packages.nix fix(formatting): Using alejandra 2024-11-22 03:37:13 +01:00
README.md fix: Remove obsolete inputs, use more standard naming 2024-10-18 14:53:01 +02:00
zsh.nix fix(aliases): Move kitten ssh alias from ssh to kssh 2024-12-23 04:30:03 +01:00

zsh-nix

A home-manager flake containing my zsh config.

Usage

{
  # Add this flake to your inputs
  inputs = {
    zsh-config.url = "/home/jirka/Projects/zsh-nix/";
    ...
  }
...
  outputs = {
    self,
    nixpkgs,
    home-manager,
    zsh-config, # Don't forget to import it
    ...
  }
  ...
# Then add it to your homeConfigurations
    homeConfigurations = {
      "user@hostname" = home-manager.lib.homeManagerConfiguration {
        pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
        extraSpecialArgs = {inherit inputs outputs;};
        modules = [
          ...
          inputs.zsh-config.homeManagerModules.default
          ...
        ];
      };

ZSH Configuration Flake

This flake provides a ZSH configuration with various plugins, syntax highlighting, enhanced file handling, etc.

Overview

Notable plugins

  • zsh-autosuggestions: Provides suggestions as you type based on your command history.
  • zsh-you-should-use: Reminds you to use aliases for commands you frequently type. It helps you streamline your workflow.
  • ssh-connect: A utility for managing SSH connections and quickly switching between them.
  • enhancd: Improves directory navigation with fuzzy search, similar to zsh-z.
  • zsh-completions: Adds missing completions for various tools.
  • powerlevel10k: A highly customizable ZSH theme that gives you a clean and modern look with useful information in your prompt.
  • git plugin: Provides consistent, intuitive aliases and extra functions for common Git commands, improving workflow efficiency.

Packages

This flake includes some useful packages:

  • nix-zsh-completions: ZSH completions for Nix, NixOS, and NixOps.
  • asciinema: Terminal recording tool.
    • libnotify: Provides notifications for terminal events.
    • websocat: Used for streaming asciinema recordings in v2 format.
  • tldr: Community-driven simplified man pages for faster reference.
  • lsd: A next-generation ls command with improved features.
  • bat: A cat clone with syntax highlighting and Git integration.
  • eza: A modern, maintained replacement for ls.
  • trash-cli: Command line interface to the Freedesktop.org trashcan.

Other

  • ex: A shell function to extract various archive formats.
    • Supported formats include .tar.bz2, .zip, .rar, .gz, and more.