mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
817ed30cdb
feat(fish): add some aliases
32 lines
806 B
Nix
32 lines
806 B
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.fish = {
|
|
enable = true;
|
|
shellAliases = {
|
|
"please" = "sudo $(fc -ln -1)";
|
|
"amend" = "git commit --amend";
|
|
"commit" = "git commit";
|
|
"add" = "git add .";
|
|
"ssh" = "kitten ssh";
|
|
"dev" = "nix develop --command 'fish'";
|
|
};
|
|
interactiveShellInit = ''
|
|
# This is commented until a good way of installing themes is found
|
|
# fish_config theme choose Catppuccin\ Mocha
|
|
|
|
function fish_greeting
|
|
# Check if not inside of a distrobox
|
|
if not test -n "$CONTAINER_ID"
|
|
krabby random --no-title --padding-left 2
|
|
end
|
|
end
|
|
'';
|
|
plugins = with pkgs.fishPlugins; [
|
|
{
|
|
name = "fzf.fish";
|
|
src = fzf-fish.src;
|
|
}
|
|
];
|
|
};
|
|
}
|