diff --git a/users/pbsds/home/profiles/bat.nix b/users/pbsds/home/profiles/bat.nix index 3fc9220..86c761b 100644 --- a/users/pbsds/home/profiles/bat.nix +++ b/users/pbsds/home/profiles/bat.nix @@ -1,4 +1,12 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: + +let + + _tmp_func_name = "_tmp_func_Oaw5aifeeniezeiquonaipheNahthae9caik4Rai"; # pwgen ftw + mkArgsAlias = alias: ''${_tmp_func_name}() { ${alias}; unset -f ${_tmp_func_name}; }; ${_tmp_func_name}''; + +in + { home.packages = with pkgs; [ bat @@ -7,6 +15,8 @@ # bat - TODO: condition these on programs.bat.enable ? home.shellAliases.cat = "bat --style=plain --paging=never"; + home.shellAliases.cata = mkArgsAlias ''printf "bat --paging never --style plain %q\n" "$@" | xargs -d'\n' ${lib.getExe pkgs.mprocs}''; + home.shellAliases.bata = mkArgsAlias ''printf "bat --paging never --style plain %q\n" "$@" | xargs -d'\n' ${lib.getExe pkgs.mprocs}''; #home.shellAliases.man = "batman"; #home.shellAliases.man = "PAGER=${pkgs.most}/bin/most man"; @@ -31,5 +41,5 @@ #extraPackages = with pkgs.bat-extras; [ batdiff batman batgrep batwatch ]; }; - # TODO: generate bat syntax cache: 'bat cache --build' + # TODO: generate bat syntax cache: 'bat cache --build' } diff --git a/users/pbsds/home/profiles/desktop/default.nix b/users/pbsds/home/profiles/desktop/default.nix index b554740..da6843b 100644 --- a/users/pbsds/home/profiles/desktop/default.nix +++ b/users/pbsds/home/profiles/desktop/default.nix @@ -45,6 +45,7 @@ icon-library gitg + imhex remote-exec diff --git a/users/pbsds/home/profiles/shell.nix b/users/pbsds/home/profiles/shell.nix index 6f1001e..76d013b 100644 --- a/users/pbsds/home/profiles/shell.nix +++ b/users/pbsds/home/profiles/shell.nix @@ -184,6 +184,7 @@ in #(pkgs.jnv or unstable.jnv or null) xh htmlq + mprocs just # justfile gum sysz systemctl-tui