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
|
|
|
ec = ''
|
|
|
|
pushd . &> /dev/null
|
|
|
|
cd "${config.home.homeDirectory}/.dotfiles"
|
|
|
|
nvim "+Telescope find_files"
|
|
|
|
popd
|
|
|
|
'';
|
2023-05-15 21:06:28 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
nor = ''
|
|
|
|
pushd . &> /dev/null
|
|
|
|
cd "${config.home.homeDirectory}/.dotfiles"
|
|
|
|
doas nixos-rebuild switch --flake .#
|
|
|
|
popd &> /dev/null
|
|
|
|
'';
|
2023-05-15 21:06:28 +01:00
|
|
|
|
2023-07-01 19:47:43 +01:00
|
|
|
nou = ''
|
|
|
|
pushd . &> /dev/null
|
|
|
|
cd "${config.home.homeDirectory}/.dotfiles"
|
|
|
|
nix flake update --commit-lock-file
|
|
|
|
doas nixos-rebuild switch --upgrade --flake .#
|
|
|
|
popd &> /dev/null
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
shellAliases = {
|
|
|
|
e = "nvim";
|
2023-09-24 01:42:00 +01:00
|
|
|
ls = "${pkgs.eza}/bin/eza --icons";
|
|
|
|
ll = "${pkgs.eza}/bin/eza --icons -l";
|
2023-10-15 00:16:19 +01:00
|
|
|
nf = "${pkgs.fastfetch}/bin/fastfetch";
|
2022-08-07 16:37:11 +01:00
|
|
|
};
|
2023-07-01 19:47:43 +01:00
|
|
|
};
|
2022-08-07 16:37:11 +01:00
|
|
|
}
|