home/nushell: Generate ls colours based on scheme
This commit is contained in:
parent
9b4d8ee4b6
commit
f19b37aa66
1 changed files with 7 additions and 1 deletions
|
@ -302,8 +302,14 @@ in {
|
|||
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
envFile.text = ''
|
||||
envFile.text = let
|
||||
ls-colours = pkgs.runCommand "ls-colours" { } ''
|
||||
${lib.getExe pkgs.vivid} generate catppuccin-mocha >$out
|
||||
'' |> builtins.readFile;
|
||||
in ''
|
||||
load-env {
|
||||
LS_COLORS: r#'${ls-colours}'#
|
||||
|
||||
PROMPT_COMMAND: {
|
||||
let dir = match (do --ignore-shell-errors { $env.PWD | path relative-to $nu.home-path }) {
|
||||
null => $env.PWD
|
||||
|
|
Loading…
Reference in a new issue