pokemon-colorscripts + declarative bash config

This commit is contained in:
Danilo Reyes 2025-01-09 13:19:10 -06:00
parent 5d66d618e8
commit 0e2b4b226d

View File

@ -1,7 +1,17 @@
{ config, ... }: {
inputs,
config,
pkgs,
...
}:
{ {
home.stateVersion = "24.11"; home.stateVersion = "24.11";
programs.bash = { programs.bash =
let
inherit (pkgs) fd fzf;
inherit (inputs.jawz-scripts.packages.x86_64-linux) pokemon-colorscripts;
in
{
enable = true; enable = true;
historyFile = "\${XDG_STATE_HOME}/bash/history"; historyFile = "\${XDG_STATE_HOME}/bash/history";
historyControl = [ historyControl = [
@ -23,11 +33,11 @@
jc = "journalctl --user -xefu"; jc = "journalctl --user -xefu";
open-gallery = '' open-gallery = ''
cd /srv/miniserver/pool/scrapping/JawZ/gallery-dl && cd /srv/miniserver/pool/scrapping/JawZ/gallery-dl &&
xdg-open "$(fd . ./ Husbands -tdirectory -d 1 | fzf -i)"''; xdg-open "$(${fd}/bin/fd . ./ Husbands -tdirectory -d 1 | ${fzf}/bin/fzf -i)"'';
}; };
enableVteIntegration = true; enableVteIntegration = true;
initExtra = '' initExtra = ''
$HOME/.local/bin/pokemon-colorscripts -r --no-title ${pokemon-colorscripts}/bin/pokemon-colorscripts -r --no-title
export command_timeout=60 export command_timeout=60
''; '';
}; };