2023-05-15 21:06:28 +01:00
|
|
|
{
|
2023-10-08 10:51:15 +01:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-07-01 19:47:43 +01:00
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
2023-05-15 21:06:28 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
plugins = [
|
2023-10-08 10:51:15 +01:00
|
|
|
{
|
|
|
|
name = "gruvbox-theme";
|
|
|
|
src = inputs.fish-plugin-gruvbox-theme;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "bobthefish";
|
|
|
|
src = inputs.fish-plugin-bobthefish;
|
|
|
|
}
|
2023-07-01 19:47:43 +01:00
|
|
|
];
|
2023-05-15 21:06:28 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
interactiveShellInit = ''
|
|
|
|
theme_gruvbox dark medium
|
|
|
|
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
|
2023-05-26 02:42:33 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
set -g theme_color_scheme gruvbox
|
|
|
|
set -g theme_nerd_fonts yes
|
|
|
|
set -g theme_display_git_default_branch yes
|
|
|
|
set -g theme_git_default_branches master main
|
|
|
|
'';
|
2023-05-15 21:06:28 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
functions = {
|
|
|
|
fish_greeting = "";
|
2023-05-15 21:06:28 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
nor = ''
|
2024-01-11 03:47:13 +00:00
|
|
|
doas nixos-rebuild switch --flake ${config.home.homeDirectory}/.dotfiles
|
|
|
|
'';
|
|
|
|
|
|
|
|
hms = ''
|
|
|
|
home-manager switch --flake ${config.home.homeDirectory}/.dotfiles
|
2023-07-01 19:47:43 +01:00
|
|
|
'';
|
2023-05-15 21:06:28 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
nou = ''
|
2024-01-11 03:47:13 +00:00
|
|
|
nix flake update ${config.home.homeDirectory}/.dotfiles --commit-lock-file
|
|
|
|
doas nixos-rebuild switch --upgrade --flake ${config.home.homeDirectory}/.dotfiles
|
2023-07-01 19:47:43 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
shellAliases = {
|
2024-01-19 11:17:30 +00:00
|
|
|
ec = "hx ~/.dotfiles";
|
2023-12-29 23:19:10 +00:00
|
|
|
nf = "${pkgs.fastfetch}/bin/fastfetch";
|
2023-09-24 01:42:00 +01:00
|
|
|
ls = "${pkgs.eza}/bin/eza --icons";
|
|
|
|
ll = "${pkgs.eza}/bin/eza --icons -l";
|
2023-12-29 23:19:10 +00:00
|
|
|
r = "${pkgs.lf}/bin/lf";
|
2022-08-07 16:37:11 +01:00
|
|
|
};
|
2023-07-01 19:47:43 +01:00
|
|
|
};
|
2022-08-07 16:37:11 +01:00
|
|
|
}
|