summaryrefslogtreecommitdiff
path: root/nixos/home-configuration/apps/zsh.nix
diff options
context:
space:
mode:
authorcoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
committercoasteen <coasteen@proton.me>2026-07-09 10:42:28 +0330
commit8cbadb61604667b407b53ee1258433994fa4765a (patch)
tree97765fb29418fd6278fcb4cbb9760893afaf7a58 /nixos/home-configuration/apps/zsh.nix
Diffstat (limited to 'nixos/home-configuration/apps/zsh.nix')
-rwxr-xr-xnixos/home-configuration/apps/zsh.nix59
1 files changed, 59 insertions, 0 deletions
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)"
+ '';
+ };
+}