1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Do not run a starship executable every single time a shell is opened

This commit is contained in:
RGBCube 2025-01-08 18:04:52 +03:00
parent 2c0580d4ba
commit 444d40c6e9
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
3 changed files with 12 additions and 5 deletions

View file

@ -405,3 +405,8 @@ $env.config.keybindings = [
event: { send: enter }
}
]
$env.LS_COLORS = (open ~/.config/nushell/ls_colors.txt)
source ~/.config/nushell/zoxide.nu
source ~/.config/nushell/starship.nu

View file

@ -33,9 +33,15 @@
"nushell/ls_colors.txt".source = pkgs.runCommand "ls_colors.txt" {} ''
${lib.getExe pkgs.vivid} generate gruvbox-dark-hard > $out
'';
"nushell/starship.nu".source = pkgs.runCommand "starship.nu" {} ''
${lib.getExe pkgs.starship} init nu > $out
'';
};
programs.starship = enabled {
# No `enabled` because home-manager is terrible and spits out something
# that does it at runtime instead of doing it at system realization time.
programs.starship = {
settings = {
command_timeout = 100;
scan_timeout = 20;

View file

@ -7,8 +7,6 @@ $env.ENV_CONVERSIONS.PATH = {
}
}
$env.LS_COLORS = (open ~/.config/nushell/ls_colors.txt)
def --env mc [path: path] {
mkdir $path
cd $path
@ -19,5 +17,3 @@ def --env mcg [path: path] {
cd $path
git init
}
source ~/.config/nushell/zoxide.nu