mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{ pkgs, ... }: {
|
|
home-manager.users.coast = {
|
|
programs.zsh = {
|
|
enable = true;
|
|
|
|
history = {
|
|
path = "/home/coast/.cache/zsh/history";
|
|
size = 100000000;
|
|
save = 100000000;
|
|
append = true;
|
|
};
|
|
|
|
enableCompletion = true;
|
|
|
|
shellAliases = {
|
|
nf = "neofetch";
|
|
nrs = "doas 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";
|
|
dias = "doas";
|
|
};
|
|
|
|
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
|
|
PROMPT="[%n@%m %~]%% "
|
|
export LIBCLANG_PATH=/usr/lib/llvm/20/lib64
|
|
export PATH=$PATH:/home/coast/.spicetify
|
|
source ~/.local/src/zsh.d/zsh-autosuggestions.zsh
|
|
export PATH="/usr/bin:$PATH"
|
|
'';
|
|
};
|
|
};
|
|
}
|
|
|