feat(zsh): show ASCII logo in a new terminal

This commit is contained in:
Oliver Davies 2023-08-11 19:55:56 +01:00
parent b7dca115ae
commit 577054a9e5
6 changed files with 30 additions and 9 deletions

View file

@ -1,4 +1,4 @@
{ inputs, pkgs, username }:
{ inputs, pkgs, self, username }:
let
vim-astro = pkgs.vimUtils.buildVimPlugin {
@ -207,12 +207,20 @@ in
};
};
home.file."logo.txt" = {
source = pkgs.copyPathToStore "${self}/logo.txt";
target = "logo.txt";
};
programs.zsh = {
enable = true;
enableCompletion = false;
dotDir = ".config/zsh";
initExtra = ''
# Show the logo at the start of each prompt.
cat ~/logo.txt
# Plugins
source "''${ZPLUG_REPOS}/robbyrussell/oh-my-zsh/plugins/git/git.plugin.zsh"
source "''${ZPLUG_REPOS}/robbyrussell/oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh"