🐟 Fish plugin and alias

- Alias for ssh with kitty
- Fish config file in home with starship
- Added fishbang plugin to fish
- nix-prefetch-github to get rev and hash
This commit is contained in:
Martin Berg Alstad 2024-12-31 14:01:42 +01:00
parent 66dd36235b
commit 59892a5981
Signed by: martials
GPG Key ID: A3824877B269F2E2
4 changed files with 33 additions and 6 deletions

View File

@ -72,6 +72,7 @@
freetube
nextcloud-client
discord
nix-prefetch-github # Cmd to get rev and hash from GitHub
];
nix.settings.experimental-features = [

View File

@ -9,6 +9,7 @@ in
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
./fish.nix
./nixvim
./rofi
./wlogout
@ -37,11 +38,6 @@ in
home-manager.enable = true;
kitty.enable = true;
starship = {
enable = true;
settings = (with builtins; fromTOML (readFile ./starship.toml)) // { };
};
};
services = {

26
home/fish.nix Normal file
View File

@ -0,0 +1,26 @@
{ pkgs, ... }:
{
programs = {
fish = {
enable = true;
plugins = [
{
# !! to get the previous command
name = "fishbang";
src = pkgs.fetchFromGitHub {
owner = "BrewingWeasel";
repo = "fishbang";
rev = "50389667eb9ac79edcff9b987c83e1de8ac93921";
hash = "sha256-IneNWyfo29C7FDA5b6pTZRX3HpP6y/dRM6GXuLq2+zc=";
};
}
];
};
starship = {
enable = true;
settings = (with builtins; fromTOML (readFile ./starship.toml)) // { };
};
};
}

View File

@ -17,8 +17,12 @@
enable = true;
# Start starship when creating a new shell
interactiveShellInit = ''
starship init fish | source
starship init fish | source
'';
shellAliases = {
# Transfer shell config to target device
ssh = "kitty +kitten ssh";
};
};
};
}