mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Run zoxide and vivid at compile time and not runtime
This commit is contained in:
parent
6f08c6b619
commit
c138f9406b
3 changed files with 13 additions and 3 deletions
|
@ -397,5 +397,3 @@ $env.config.keybindings = [
|
|||
event: { send: enter }
|
||||
}
|
||||
]
|
||||
|
||||
source ~/.config/nushell/zoxide.nu
|
||||
|
|
|
@ -20,6 +20,16 @@
|
|||
})
|
||||
|
||||
(homeConfiguration {
|
||||
xdg.configFile = {
|
||||
"nushell/zoxide.nu".source = pkgs.runCommand "zoxide.nu" {} ''
|
||||
${lib.getExe pkgs.zoxide} init nushell --cmd cd > $out
|
||||
'';
|
||||
|
||||
"nushell/ls_colors.txt".source = pkgs.runCommand "ls_colors.txt" {} ''
|
||||
${lib.getExe pkgs.vivid} generate gruvbox-dark-hard > $out
|
||||
'';
|
||||
};
|
||||
|
||||
programs.starship = enabled {
|
||||
settings = {
|
||||
command_timeout = 100;
|
||||
|
|
|
@ -7,6 +7,8 @@ $env.ENV_CONVERSIONS.PATH = {
|
|||
}
|
||||
}
|
||||
|
||||
$env.LS_COLORS = (open ~/.config/nushell/ls_colors.txt)
|
||||
|
||||
def --env mc [path: path] {
|
||||
mkdir $path
|
||||
cd $path
|
||||
|
@ -18,4 +20,4 @@ def --env mcg [path: path] {
|
|||
git init
|
||||
}
|
||||
|
||||
zoxide init nushell --cmd cd | save --force ~/.config/nushell/zoxide.nu
|
||||
source ~/.config/nushell/zoxide.nu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue