refactor home/tiling
refactor home/terminal refactor home/apps refactor home/services refactor home/games
This commit is contained in:
parent
c241155b93
commit
e228035134
31 changed files with 39 additions and 21 deletions
58
home/terminal/fish.nix
Normal file
58
home/terminal/fish.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.qttools
|
||||
eza
|
||||
];
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ssh = "kitty-ssh";
|
||||
cat = "bat";
|
||||
ls = "eza";
|
||||
gl = "git log";
|
||||
ga = "git add -v .";
|
||||
gac = "git add -v . && git commit";
|
||||
gaca = "git add -v . && git commit --amend --no-edit";
|
||||
gp = "git push";
|
||||
gpf = "git push --force";
|
||||
};
|
||||
functions = {
|
||||
fish_prompt = {
|
||||
description = "Write out the prompt";
|
||||
body = builtins.readFile ./fish_functions/fish-prompt.fish;
|
||||
};
|
||||
kitty-ssh = {
|
||||
description = "Integrate Kitten SSH with Fish";
|
||||
body = builtins.readFile ./fish_functions/kitty-ssh.fish;
|
||||
};
|
||||
nix-shell = {
|
||||
description = "Wrapper for nix-shell that runs fish by default";
|
||||
body = builtins.readFile ./fish_functions/nix-shell.fish;
|
||||
};
|
||||
logout = {
|
||||
description = "Log out of KDE Plasma";
|
||||
body = builtins.readFile ./fish_functions/logout.fish;
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.man.generateCaches = false;
|
||||
|
||||
home.file.".config/fish/colors.fish" = {
|
||||
text = let
|
||||
flavor = config.catppuccin.flavor;
|
||||
palette = pkgs.catppuccin.bare.${flavor};
|
||||
accent = config.catppuccin.accent;
|
||||
in
|
||||
lib.concatStringsSep "\n" (
|
||||
(lib.mapAttrsToList (name: value: "set -g color_${name} ${value}") palette)
|
||||
++ ["set -g color_accent ${palette.${accent}}"]
|
||||
);
|
||||
force = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue