mirror of
https://github.com/thegeneralist01/config.git
synced 2026-05-30 08:37:01 +02:00
fix nushell not being default shell
This commit is contained in:
parent
8c109011cc
commit
181b787ce5
5 changed files with 174 additions and 93 deletions
|
|
@ -1,12 +1,31 @@
|
|||
{ pkgs, ... }: {
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) getExe;
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.carapace
|
||||
pkgs.fish
|
||||
pkgs.zsh
|
||||
pkgs.bash
|
||||
pkgs.inshellisense
|
||||
];
|
||||
|
||||
environment.variables.CARAPACE_BRIDGES = "inshellisense,carapace,zsh,fish,bash";
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
programs.carapace.enable = true;
|
||||
programs.carapace = {
|
||||
enable = true;
|
||||
enableNushellIntegration = false;
|
||||
enableZshIntegration = false;
|
||||
};
|
||||
|
||||
programs.nushell.extraConfig = /* nu */ ''
|
||||
source ${
|
||||
pkgs.runCommand "carapace.nu" { } ''
|
||||
${getExe pkgs.carapace} _carapace nushell > $out
|
||||
''
|
||||
}
|
||||
'';
|
||||
}];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue