zsh
This commit is contained in:
parent
dbccd5e097
commit
f2eaebcfd6
4 changed files with 215 additions and 284 deletions
File diff suppressed because it is too large
Load diff
9
config/zsh/zshrc.zsh
Normal file
9
config/zsh/zshrc.zsh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
@ -14,11 +14,23 @@ in
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
# promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.sako = { pkgs, ...}: {
|
home-manager.users.sako = { pkgs, ...}: {
|
||||||
|
home.file = {
|
||||||
|
".zshrc" = {
|
||||||
|
enable = true;
|
||||||
|
source = ../../../config/zsh/zshrc.zsh;
|
||||||
|
};
|
||||||
|
".p10k.zsh" = {
|
||||||
|
enable = true;
|
||||||
|
source = ../../../config/zsh/p10k.zsh;
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "zsh-nix-shell";
|
name = "zsh-nix-shell";
|
||||||
|
|
Loading…
Reference in a new issue