From 70dd415c8e053721186ee1834a4abda0770405bc Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 11 Jul 2023 21:50:57 +0100 Subject: Change from fish to zsh with p10k --- homes/floppydisk/default.nix | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) (limited to 'homes/floppydisk') diff --git a/homes/floppydisk/default.nix b/homes/floppydisk/default.nix index dbf60c3..855515d 100644 --- a/homes/floppydisk/default.nix +++ b/homes/floppydisk/default.nix @@ -119,6 +119,9 @@ vlc libsForQt5.vvave tidal-hifi + + # zsh Themes + zsh-powerlevel10k ]; }; @@ -127,12 +130,36 @@ # Enable home-manager home-manager.enable = true; - # Enable fish shell - fish = { + # Enable z-shell + zsh = { enable = true; - interactiveShellInit = '' - set fish_greeting # Disable fish_greeting - export GPG_TTY=$(tty) + shellAliases = { + ls = "lsd"; + ll = "ls -l"; + la = "ls -la"; + }; + history = { + size = 10000; + path = "$HOME/.config/zsh/history"; + }; + oh-my-zsh = { + enable = true; + plugins = [ + "git" + "thefuck" + ]; + custom = "$HOME/.oh-my-custom"; + theme = "powerlevel10k/powerlevel10k"; + }; + plugins = [ + { + name = "powerlevel10k"; + src = pkgs.zsh-powerlevel10k; + file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; + } + ]; + initExtra = '' + source ~/.p10k.zsh ''; }; -- cgit v1.2.3-54-g00ecf