🐟 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:
parent
66dd36235b
commit
59892a5981
@ -72,6 +72,7 @@
|
||||
freetube
|
||||
nextcloud-client
|
||||
discord
|
||||
nix-prefetch-github # Cmd to get rev and hash from GitHub
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
|
@ -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
26
home/fish.nix
Normal 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)) // { };
|
||||
};
|
||||
};
|
||||
}
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user