Skip to content

Commit

Permalink
feat: pdf-compress shell function
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarrio committed Jan 9, 2025
1 parent 7deb705 commit 2d2bcef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions home-manager/mixins/users/tcarrio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ Host glass
set -U fish_pager_color_description yellow
set -U fish_pager_color_prefix white --bold --underline
set -U fish_pager_color_progress brwhite '--background=cyan'
function pdf-compress
${pkgs.ghostscript}/bin/gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$argv[2]" "$argv[1]"
end
'';

shellAliases =
Expand Down

0 comments on commit 2d2bcef

Please sign in to comment.