feat: restructure and move apps into their own configs (#2)
This commit is contained in:
40
home/programs/fish.nix
Normal file
40
home/programs/fish.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
device,
|
||||
...
|
||||
}: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAbbrs = {
|
||||
vim = "nvim";
|
||||
vi = "nvim";
|
||||
nv = "neovide";
|
||||
g = "git";
|
||||
yy = "yazi";
|
||||
cd = "z";
|
||||
ls = "eza";
|
||||
cat = "bat";
|
||||
j = "just --choose";
|
||||
# t = "zellij a -c --index 0";
|
||||
t = "tmux";
|
||||
};
|
||||
shellAliases =
|
||||
{
|
||||
g = "git";
|
||||
}
|
||||
// lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
kmpv = "mpv --vo-kitty-use-shm=yes --vo=kitty --really-quiet";
|
||||
smpv = "mpv --vo-sixel-buffered=yes --vo=sixel --profile=sw-fast";
|
||||
};
|
||||
shellInit = ''
|
||||
set fish_greeting
|
||||
yes | fish_config theme save "Catppuccin Mocha"
|
||||
'';
|
||||
# ${pkgs.spotify-player}/bin/spotify_player generate fish | source
|
||||
interactiveShellInit = ''
|
||||
${pkgs.pfetch-rs}/bin/pfetch
|
||||
${lib.optionalString (device.isLinux && !device.isNix) "source /etc/profile.d/nix-daemon.fish"}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user