fish
-> bash
This commit is contained in:
parent
0016d20633
commit
a5fb079c06
3 changed files with 39 additions and 22 deletions
|
@ -70,24 +70,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.fish = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
initExtra = lib.optionalString (builtins.hasAttr "cachix-personal-token" age.secrets) ''
|
||||||
# {
|
|
||||||
# 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})
|
export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
@ -95,10 +80,43 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue