stashing
This commit is contained in:
parent
0fd2177bd0
commit
b39414b1e7
3 changed files with 19 additions and 21 deletions
|
@ -47,10 +47,10 @@ in
|
|||
};
|
||||
|
||||
home.shellAliases = {
|
||||
ls = "eza -a";
|
||||
cat = "bat -pp";
|
||||
y = "yazi";
|
||||
zed = "zeditor .";
|
||||
# ls = "eza -a";
|
||||
# cat = "bat -pp";
|
||||
# y = "yazi";
|
||||
# zed = "zeditor .";
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
|
@ -18,19 +18,19 @@ in
|
|||
environment.pathsToLink = ["/share/zsh"];
|
||||
|
||||
home-manager.users.${user} = {
|
||||
xdg.configFile."zsh-abbreviations" = {
|
||||
target = "zsh/abbreviations";
|
||||
text = let
|
||||
abbrevs = {
|
||||
ls = "eza -al";
|
||||
};
|
||||
in ''
|
||||
${concatStrings (mapAttrsToList
|
||||
(k: v: "abbr ${k}=${escapeNixString v}")
|
||||
abbrevs
|
||||
)}
|
||||
'';
|
||||
};
|
||||
# xdg.configFile."zsh-abbreviations" = {
|
||||
# target = "zsh/abbreviations";
|
||||
# text = let
|
||||
# abbrevs = {
|
||||
# ls = "eza -al";
|
||||
# };
|
||||
# in ''
|
||||
# ${concatStrings (mapAttrsToList
|
||||
# (k: v: "abbr ${k}=${escapeNixString v}")
|
||||
# abbrevs
|
||||
# )}
|
||||
# '';
|
||||
# };
|
||||
|
||||
programs = {
|
||||
starship.enableZshIntegration = true;
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
{ config, lib, ... }: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.modules.shell.zsh;
|
||||
in
|
||||
{
|
||||
options.modules.shell.zsh = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in
|
||||
{
|
||||
options.modules.shell.zsh = {
|
||||
enable = mkEnableOption "enable ZSH";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue