mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 20:02:10 +02:00
49
home/system/shell/zsh.nix
Normal file
49
home/system/shell/zsh.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
home.packages = with pkgs; [ eza bat ripgrep tldr ];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
historySubstringSearch.enable = true;
|
||||
|
||||
# If the variable config.theme.print-neofetch is set to true, neofetch will be printed
|
||||
initExtraFirst = ''
|
||||
bindkey -e
|
||||
${if config.theme.print-neofetch then
|
||||
pkgs.neofetch + "/bin/neofetch"
|
||||
else
|
||||
""}
|
||||
'';
|
||||
|
||||
history = {
|
||||
ignoreDups = true;
|
||||
save = 1000000;
|
||||
size = 1000000;
|
||||
};
|
||||
|
||||
profileExtra = lib.optionalString (config.home.sessionPath != [ ]) ''
|
||||
export PATH="$PATH''${PATH:+:}${
|
||||
lib.concatStringsSep ":" config.home.sessionPath
|
||||
}"
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
vim = "nvim";
|
||||
v = "nvim";
|
||||
c = "clear";
|
||||
clera = "clear";
|
||||
celar = "clear";
|
||||
e = "exit";
|
||||
cd = "z";
|
||||
ls = "${pkgs.eza}/bin/eza --icons=always";
|
||||
sl = "ls";
|
||||
open = "${pkgs.xdg_utils}/bin/xdg-open";
|
||||
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
||||
note = "vim ~/Nextcloud/obsidian";
|
||||
obs = "vim ~/Nextcloud/obsidian";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user