2023-05-25 15:44:15 +01:00
|
|
|
{ config, pkgs, ... }:
|
2023-05-15 21:06:28 +01:00
|
|
|
{
|
|
|
|
programs.exa = {
|
|
|
|
enable = true;
|
|
|
|
enableAliases = true;
|
2022-08-07 16:37:11 +01:00
|
|
|
};
|
2023-05-15 21:06:28 +01:00
|
|
|
|
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
plugins = [
|
|
|
|
];
|
|
|
|
|
|
|
|
interactiveShellInit = ''
|
|
|
|
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
|
2023-05-17 19:46:17 +01:00
|
|
|
'';
|
2023-05-15 21:06:28 +01:00
|
|
|
|
|
|
|
functions = {
|
|
|
|
fish_greeting = "";
|
|
|
|
|
2023-05-17 19:46:17 +01:00
|
|
|
fish_prompt = ''
|
|
|
|
set_color -b blue
|
|
|
|
set_color black
|
|
|
|
printf " %s " (prompt_pwd)
|
|
|
|
set_color -b normal
|
|
|
|
set_color blue
|
|
|
|
printf " "
|
|
|
|
set_color normal
|
|
|
|
'';
|
|
|
|
|
2023-05-15 21:06:28 +01:00
|
|
|
ec = ''
|
|
|
|
pushd . &> /dev/null
|
|
|
|
cd "${config.home.homeDirectory}/.dotfiles"
|
|
|
|
nvim "+Telescope find_files"
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
nor = ''
|
|
|
|
pushd . &> /dev/null
|
|
|
|
cd "${config.home.homeDirectory}/.dotfiles"
|
|
|
|
doas nixos-rebuild switch --flake .#
|
|
|
|
popd &> /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
nou = ''
|
|
|
|
pushd . &> /dev/null
|
|
|
|
cd "${config.home.homeDirectory}/.dotfiles"
|
2023-05-21 21:21:25 +01:00
|
|
|
nix flake update --commit-lock-file
|
2023-05-15 21:06:28 +01:00
|
|
|
doas nixos-rebuild switch --upgrade --flake .#
|
|
|
|
popd &> /dev/null
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
shellAliases = {
|
2023-05-21 21:21:25 +01:00
|
|
|
nf = "${pkgs.neofetch}/bin/neofetch";
|
2023-05-17 19:46:17 +01:00
|
|
|
e = "nvim";
|
2023-05-15 21:06:28 +01:00
|
|
|
};
|
2022-08-07 16:37:11 +01:00
|
|
|
};
|
|
|
|
}
|