add zsh plugins
This commit is contained in:
parent
68817ff5f7
commit
619844e03d
2
home.nix
2
home.nix
|
@ -10,6 +10,8 @@
|
||||||
};
|
};
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
wineWowPackages.unstable
|
wineWowPackages.unstable
|
||||||
|
eza
|
||||||
|
bat
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,9 @@
|
||||||
# example # example user-defined segment (see prompt_example function below)
|
# example # example user-defined segment (see prompt_example function below)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
typeset -g POWERLEVEL9K_TERM_SHELL_INTEGRATION=true
|
||||||
|
# makes the terminal not look like shit when shrinking it, only works with kitty
|
||||||
|
|
||||||
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
|
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
|
||||||
typeset -g POWERLEVEL9K_MODE=nerdfont-v3
|
typeset -g POWERLEVEL9K_MODE=nerdfont-v3
|
||||||
# When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
|
# When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
@ -16,6 +16,7 @@
|
||||||
};
|
};
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "powerlevel10k";
|
name = "powerlevel10k";
|
||||||
file = "powerlevel10k.zsh-theme";
|
file = "powerlevel10k.zsh-theme";
|
||||||
|
@ -25,7 +26,38 @@
|
||||||
rev = "v1.19.0";
|
rev = "v1.19.0";
|
||||||
sha256 = "+hzjSbbrXr0w1rGHm6m2oZ6pfmD6UUDBfPd7uMg5l5c=";
|
sha256 = "+hzjSbbrXr0w1rGHm6m2oZ6pfmD6UUDBfPd7uMg5l5c=";
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "zsh-bat";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "fdellwing";
|
||||||
|
repo = "zsh-bat";
|
||||||
|
rev = "d7d5df4f6c7dd380e49b47e4da840226a828968a";
|
||||||
|
sha256 = "4DQ/qSznM4A9IyM6W0bncHUa4jTIAdBxL16YJgMccHE=";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "z.lua";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "skywind3000";
|
||||||
|
repo = "z.lua";
|
||||||
|
rev = "1.8.16";
|
||||||
|
sha256 = "VVJXBVENXlJXVj831Hx4sa7AzGHXpsui6tga9uA6ZnE=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "zsh-vi-mode";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "jeffreytse";
|
||||||
|
repo = "zsh-vi-mode";
|
||||||
|
rev = "v0.10.0";
|
||||||
|
sha256 = "QE6ZwwM2X0aPqNnbVrj0y7w9hmuRf0H1j8nXYwyoLo4=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "eza";
|
ls = "eza";
|
||||||
|
@ -39,20 +71,5 @@
|
||||||
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = true;
|
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# oh-my-zsh = {
|
|
||||||
# enable = true;
|
|
||||||
# plugins = [
|
|
||||||
# "z"
|
|
||||||
# "git"
|
|
||||||
# "vi-mode"
|
|
||||||
# "thefuck"
|
|
||||||
# ];
|
|
||||||
# theme = "bira"; # TODO: figure out how to source custom theme
|
|
||||||
# # other cool themes:
|
|
||||||
# # duellj
|
|
||||||
# # simonoff
|
|
||||||
# # strug
|
|
||||||
# # bira
|
|
||||||
# };
|
|
||||||
home.file.".config/zsh/.p10k.zsh".source = ./.p10k.zsh;
|
home.file.".config/zsh/.p10k.zsh".source = ./.p10k.zsh;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue