forked from mirrors_public/oddlama_nix-config
feat: configure nushell a little
This commit is contained in:
parent
eadbc15bbf
commit
927e8327cb
7 changed files with 50 additions and 11 deletions
28
users/modules/config/nushell/config.nu
Normal file
28
users/modules/config/nushell/config.nu
Normal file
|
@ -0,0 +1,28 @@
|
|||
$env.config = {
|
||||
show_banner: false
|
||||
|
||||
history: {
|
||||
max_size: 10000000
|
||||
file_format: "sqlite"
|
||||
# Write history on enter
|
||||
sync_on_enter: true
|
||||
# but each shell should have an effective isolated buffer
|
||||
isolation: true
|
||||
}
|
||||
|
||||
completions: {
|
||||
case_sensitive: false
|
||||
quick: true
|
||||
partial: true
|
||||
algorithm: "prefix"
|
||||
external: {
|
||||
enable: true
|
||||
max_results: 200
|
||||
completer: null
|
||||
}
|
||||
}
|
||||
|
||||
cd: {
|
||||
abbreviations: true
|
||||
}
|
||||
}
|
15
users/modules/config/nushell/default.nix
Normal file
15
users/modules/config/nushell/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
configFile.source = ./config.nu;
|
||||
envFile.source = ./env.nu;
|
||||
};
|
||||
|
||||
home.persistence."/persist".directories = [
|
||||
".config/nushell"
|
||||
];
|
||||
|
||||
# XXX: remove once removed. DEBOALOGR
|
||||
programs.starship.enableNushellIntegration = false;
|
||||
programs.atuin.enableNushellIntegration = false;
|
||||
}
|
0
users/modules/config/nushell/env.nu
Normal file
0
users/modules/config/nushell/env.nu
Normal file
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
programs.nushell.enable = true;
|
||||
programs.starship.enableNushellIntegration = false;
|
||||
programs.atuin.enableNushellIntegration = false;
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
./config/htop.nix
|
||||
./config/impermanence.nix
|
||||
./config/neovim.nix
|
||||
./config/shell
|
||||
./config/nushell
|
||||
./config/utils.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue