2023-07-01 19:47:43 +01:00
|
|
|
{ config, pkgs, inputs, ... }:
|
2023-05-15 21:06:28 +01:00
|
|
|
{
|
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 = [
|
|
|
|
{ name = "gruvbox-theme"; src = inputs.fish-plugin-gruvbox-theme; }
|
|
|
|
{ name = "bobthefish"; src = inputs.fish-plugin-bobthefish; }
|
|
|
|
];
|
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";
|
|
|
|
ls = "${pkgs.exa}/bin/exa --icons";
|
|
|
|
ll = "${pkgs.exa}/bin/exa --icons -l";
|
|
|
|
nf = "${pkgs.neofetch}/bin/neofetch";
|
2022-08-07 16:37:11 +01:00
|
|
|
};
|
2023-07-01 19:47:43 +01:00
|
|
|
};
|
2022-08-07 16:37:11 +01:00
|
|
|
}
|