Skip to content

Commit

Permalink
Image stuf, and aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Oct 14, 2024
1 parent 69086bb commit 8f51ba5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,9 @@ zshrc_load_library() {
for file in "$@"; do
# Strip metadata, reduce quality, and convert to sRGB.
magick "$file" -sampling-factor 4:2:0 -auto-orient -strip -quality 85 -interlace JPEG -colorspace sRGB "${file%.*}.jpg"
rm "$file"
if [ "$file" != "${file%.*}.jpg" ]; then
rm "$file"
fi
done
}
Expand All @@ -1374,7 +1376,7 @@ zshrc_load_library() {
}
image-enhance() {
#image-shrink $@
image-shrink $@
image-boost $@
image-optimize $@
}
Expand Down Expand Up @@ -1844,6 +1846,10 @@ zshrc_set_aliases() {
alias Einstall='sudo emerge --ask --verbose --tree --noreplace'
alias Eclean='sudo emerge --ask --depclean'
alias Esearch='emerge --search'
alias pytest='pytest --capture=tee-sys -vv'
alias dex='dex-autostart'
}
zshrc_set_default_programs() {
Expand Down

0 comments on commit 8f51ba5

Please sign in to comment.