过去配置 zsh, 一般是通过修改.zshrc.zprofile和.zshenv这些文件, 如果需要同步到不同机器, 可以借助yadm同步到github. 但这里将通过 home-manager 实现管理所有zsh配置 以下是一个zsh的配置实例, 内置了一部分常用的zsh特性. 内置oh-my-zsh, 启用vi-mode和jump插件 .zshenv加入 nix 环境变量 (这就是前面安装...
homeConfigurations=letusername="yourname";system="x86_64-linux";pkgs=importnixpkgs{inheritsystem;config.allowUnfree=true;overlays=[nur.overlay(import./overlays)];};in{${username}=home-manager.lib.homeManagerConfiguration{inheritpkgs;modules=[./home-manager/cli.nix./home-manager/zsh.nix# 需要一些...
zsh.interactiveShellInit = '' # Enable the below for profiling zsh's startup speed. # Once enabled, get numbers using: # zsh -i -l -c 'zprof' #zmodload zsh/zprof # Disable `compaudit` being invoked from GRML cominit call. # See: https://grml.org/zsh/grmlzshrc.html # This s...
shell: zsh + pretzo editor: helix / neovim (configuration) architecture flake.nix darwinConfigurations.brummi is the entrypoint for macOS darwin/ nix-darwin configuration home-manager/ home-manager configuration shell/ cross-platform shell configuration github.com:breuerfelix/feovim neovim configuratio...
programs.zsh.initExtra = '' source ~/.nix-profile/share/git/contrib/completion/git-prompt.sh setopt PROMPT_SUBST export PS1='%~ $(__git_ps1 "(%s) ")%# ' ''; This produces prompts like~/repository (main) %inside a git repository, and~/not/a/repository %elsewhere....
66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU +ehcCuz/mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gp S0l4PJNgiCL8mdo2yMKi1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D1 bVoE/c40yiTcdCMbXTMTEl3EASX2MN0CXZ/g1Ue9tOsbobtJSdifWwLziuQkkORi T0/Br4sOdBeo0X...
${user} = { name = "${user}"; home = "/Users/${user}"; isHidden = false; shell = pkgs.zsh; }; home-manager = { useGlobalPkgs = true; users.${user} = { pkgs, config, lib, ... }: { home = { enableNixpkgsReleaseCheck = false; stateVersion = "23.11"; packages = ...
Adds a package option to programs.zsh.prezto, allowing it to be overridden. Checklist Change is backwards compatible. Code formatted with ./format. Code tested through nix-shell --pure tests -A run.all or nix develop --ignore-environment .#all using Flakes. Test cases updated/added. See ex...
dotfiles.zsh dotfiles.fish This is my most recent attempt, using nix. It containshome-manager,nixOSandnix-darwinconfiguration for several machines and VMs I use. First run sh<(curl -L https://nixos.org/nix/install)echo"experimental-features = nix-command flakes">~/.config/nix/nix.conf ...
Provides zsh completions (generated to ./completions/zsh at build time). Requirements nixfmt Usage $ hmm help Home Manager Manager 0.5.0 Manages your Home Manager config USAGE: hmm <SUBCOMMAND> FLAGS: -h, --help Prints help information -V, --version Prints version information SUBCOMMANDS: add...