Init
This commit is contained in:
8
home/shell/default.nix
Normal file
8
home/shell/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
imports = [
|
||||
./fzf.nix
|
||||
./zsh.nix
|
||||
./starship.nix
|
||||
./zoxide.nix
|
||||
];
|
||||
}
|
||||
6
home/shell/fzf.nix
Normal file
6
home/shell/fzf.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
5
home/shell/starship.nix
Normal file
5
home/shell/starship.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
6
home/shell/zoxide.nix
Normal file
6
home/shell/zoxide.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.zoxide = {
|
||||
enable= true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
35
home/shell/zsh.nix
Normal file
35
home/shell/zsh.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
home.packages = with pkgs; [ eza bat ripgrep tldr ];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
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 = "eza --icons";
|
||||
open = "xdg-open";
|
||||
icat = "kitty +kitten icat";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user