From 8cbadb61604667b407b53ee1258433994fa4765a Mon Sep 17 00:00:00 2001 From: coasteen Date: Thu, 9 Jul 2026 10:42:28 +0330 Subject: init --- nixos/home-configuration/apps/zsh.nix | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 nixos/home-configuration/apps/zsh.nix (limited to 'nixos/home-configuration/apps/zsh.nix') diff --git a/nixos/home-configuration/apps/zsh.nix b/nixos/home-configuration/apps/zsh.nix new file mode 100755 index 0000000..6eb6446 --- /dev/null +++ b/nixos/home-configuration/apps/zsh.nix @@ -0,0 +1,59 @@ +{ + config, + pkgs, + ... +}: +{ + programs.zsh = { + enable = false; + history = { + path = "/home/coast/.cache/zsh/history"; + size = 100000000; + save = 100000000; + append = true; + }; + enableCompletion = true; + shellAliases = { + nf = "neofetch"; + nrs = "sudo nixos-rebuild switch"; + emoji = "cat ~/.local/src/local/share/emoji | grep"; + ls = "ls --color=auto"; + smi = "nvidia-smi"; + battery = "sb-battery"; + weather = "curl wttr.in/masjedsoleyman"; + las = "ls"; + c = "clear"; + cear = "clear"; + ".." = "cd .."; + hotp = "htop"; + main = "man"; + mian = "man"; + mna = "man"; + delgen = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system"; + alsamixer = "alsamixer -c 0 --no-color"; + la = "ls --color=auto -la"; + sidp = "sudo"; + suod = "sudo"; + sduo = "sudo"; + sd = "sudo"; + fastfetch = "fastfetch --pipe false | uwuify.awk"; + }; + initContent = '' + autoload -U compinit + zstyle ':completion:*' menu select + zmodload zsh/complist + compinit + comp_options+=(globdots) + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12" + autoload -U colors && colors && setopt prompt_subst + source ~/.local/src/zsh.d/zsh-autosuggestions.zsh + export PATH="/usr/bin:$PATH" + export PATH="$HOME/.local/bin:$PATH" + EDITOR=vim + bindkey -e + PS1="[%n in %m %~] " + eval "$(starship init zsh)" + ''; + }; +} -- cgit v1.2.3