mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-03-10 11:08:34 +01:00
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{profile, ...}: {
|
|
programs.zsh = {
|
|
enable = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
initExtra = ''
|
|
bindkey "\eh" backward-word
|
|
bindkey "\ej" down-line-or-history
|
|
bindkey "\ek" up-line-or-history
|
|
bindkey "\el" forward-word
|
|
if [ -f $HOME/.zshrc-personal ]; then
|
|
source $HOME/.zshrc-personal
|
|
fi
|
|
'';
|
|
|
|
shellAliases = {
|
|
sv = "sudo nvim";
|
|
v = "nvim";
|
|
c = "clear";
|
|
fr = "nh os switch --hostname ${profile}";
|
|
fu = "nh os switch --hostname ${profile} --update";
|
|
zu = "sh <(curl -L https://gitlab.com/Zaney/zaneyos/-/raw/main/install-zaneyos.sh)";
|
|
ncg = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
|
cat = "bat";
|
|
man = "batman";
|
|
ls = "eza --icons --group-directories-first -1";
|
|
ll = "eza --icons -a --group-directories-first -1 --no-user --long";
|
|
tree = "eza --icons --tree --group-directories-first";
|
|
};
|
|
};
|
|
}
|