Files
stormwind-nixfiles/user/stormwind/fish.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2025-01-13 01:09:41 +01:00
{ config, pkgs, ... }:
# These are all scoped in home-manager.users.stormwind.
{
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
fish_vi_key_bindings # Vi bindings
2025-01-13 01:52:55 +01:00
hyfetch
2025-01-13 01:09:41 +01:00
'';
2025-01-13 01:24:42 +01:00
shellAliases = {
ll = "ls -l";
nix-update = "sudo nixos-rebuild switch -I nixos-config=/etc/nixos/master.nix";
gda = "git add --all";
gst = "git status";
gcm = "git commit -m";
gush = "git push";
gull = "git pull";
glone = "git clone";
giff = "git diff";
gog = "git log";
open = "xdg-open";
vim = "nvim";
vi = "nvim";
};
2025-01-13 01:09:41 +01:00
plugins = [
# Enable a plugin (here grc for colorized command output) from nixpkgs
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
# Manually packaging and enable a plugin
{
name = "z";
src = pkgs.fetchFromGitHub {
owner = "jethrokuan";
repo = "z";
rev = "e0e1b9dfdba362f8ab1ae8c1afc7ccf62b89f7eb";
sha256 = "0dbnir6jbwjpjalz14snzd3cgdysgcs3raznsijd6savad3qhijc";
};
}
];
};
}