mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 12:07:48 +00:00
Do not run a starship executable every single time a shell is opened
This commit is contained in:
parent
2c0580d4ba
commit
444d40c6e9
3 changed files with 12 additions and 5 deletions
|
@ -405,3 +405,8 @@ $env.config.keybindings = [
|
||||||
event: { send: enter }
|
event: { send: enter }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
$env.LS_COLORS = (open ~/.config/nushell/ls_colors.txt)
|
||||||
|
source ~/.config/nushell/zoxide.nu
|
||||||
|
|
||||||
|
source ~/.config/nushell/starship.nu
|
||||||
|
|
|
@ -33,9 +33,15 @@
|
||||||
"nushell/ls_colors.txt".source = pkgs.runCommand "ls_colors.txt" {} ''
|
"nushell/ls_colors.txt".source = pkgs.runCommand "ls_colors.txt" {} ''
|
||||||
${lib.getExe pkgs.vivid} generate gruvbox-dark-hard > $out
|
${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 = {
|
settings = {
|
||||||
command_timeout = 100;
|
command_timeout = 100;
|
||||||
scan_timeout = 20;
|
scan_timeout = 20;
|
||||||
|
|
|
@ -7,8 +7,6 @@ $env.ENV_CONVERSIONS.PATH = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$env.LS_COLORS = (open ~/.config/nushell/ls_colors.txt)
|
|
||||||
|
|
||||||
def --env mc [path: path] {
|
def --env mc [path: path] {
|
||||||
mkdir $path
|
mkdir $path
|
||||||
cd $path
|
cd $path
|
||||||
|
@ -19,5 +17,3 @@ def --env mcg [path: path] {
|
||||||
cd $path
|
cd $path
|
||||||
git init
|
git init
|
||||||
}
|
}
|
||||||
|
|
||||||
source ~/.config/nushell/zoxide.nu
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue