add restruct2
This commit is contained in:
35
home/core/shell/adam.nix
Normal file
35
home/core/shell/adam.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
nixconfig = "cd /home/adam/.nix-config/";
|
||||
ll = "ls -l";
|
||||
nixupdate = "sudo nixos-rebuild switch --flake .#adampad";
|
||||
flakeupdate = "nix flake update";
|
||||
};
|
||||
history = {
|
||||
size = 1000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"thefuck"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
initExtra = ''
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
|
||||
eval $(thefuck --alias)
|
||||
eval $(thefuck --alias FUCK)
|
||||
|
||||
eval "$(zellij setup --generate-auto-start zsh)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user