fish -> bash

This commit is contained in:
Andrea Ciceri 2025-03-27 15:34:37 +01:00
parent 0016d20633
commit a5fb079c06
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
3 changed files with 39 additions and 22 deletions

View file

@ -70,35 +70,53 @@
}; };
}; };
programs.fish = { programs.bash = {
enable = true; enable = true;
plugins = [ initExtra = lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) ''
# { export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
# name = "fifc"; '';
# src = pkgs.fishPlugins.fifc.src;
# }
{
name = "z";
src = pkgs.fishPlugins.z.src;
}
];
shellInit =
''
# fish_vi_key_bindings
fish_default_key_bindings
''
+ lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) ''
export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
'';
shellAliases = { shellAliases = {
"cat" = "bat"; "cat" = "bat";
}; };
}; };
programs.zoxide.enable = true;
programs.thefuck.enable = true;
programs.oh-my-posh = {
enable = true;
useTheme = "catppuccin_mocha";
};
programs.zellij.enableBashIntegration = false;
# programs.fish = {
# enable = true;
# plugins = [
# # {
# # name = "fifc";
# # src = pkgs.fishPlugins.fifc.src;
# # }
# {
# name = "z";
# src = pkgs.fishPlugins.z.src;
# }
# ];
# shellInit =
# ''
# # fish_vi_key_bindings
# fish_default_key_bindings
# ''
# + lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) ''
# export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
# '';
# shellAliases = {
# "cat" = "bat";
# };
# };
home.packages = home.packages =
with pkgs; with pkgs;
[ [
thefuck
dig.dnsutils dig.dnsutils
lsof lsof
comma comma

View file

@ -99,7 +99,6 @@ in
{ {
programs.zellij = { programs.zellij = {
enable = true; enable = true;
enableFishIntegration = false;
settings = { settings = {
default_layout = "${layout}"; default_layout = "${layout}";
pane_frames = false; pane_frames = false;

View file

@ -28,7 +28,7 @@ in
shell = lib.mkOption { shell = lib.mkOption {
type = lib.types.package; type = lib.types.package;
default = pkgs.fish; default = pkgs.bash;
}; };
modules = lib.mkOption { modules = lib.mkOption {