214 karma · joined March 2, 2023
Seoul is not a pretty city, at least not by most Western standards of beauty.
It is a sprawling, haphazard mix with little apparent cohesion beyond a shared culture.
Personally, I really liked it because it has a different vibe from a more "sterile" city like Tokyo.Or you can make it even easier(cause the output is only a text) and simply print out the difference in metadata directly. You might need some other tools like ImageMagick but at least no shenanigans with viewing binary data as part of your diff.
[1]https://stackoverflow.com/questions/5132749/diff-an-image-us...
globalias() {
local raw word
# raw last blank-separated token, exactly as typed
raw=${LBUFFER##\* }
# shell-parsed last word
word=${${(z)LBUFFER}[-1]}
# if user typed \alias, don't expand
if [[ $raw == \\* ]]; then
zle self-insert
return
fi
if alias -- ${(q)word} &>/dev/null; then
zle _expand_alias
zle expand-word
fi
zle self-insert
}zle -N globalias bindkey ' ' globalias
$ hyperfine -N "zsh -lc 'exit 0'" "zsh -c 'exit 0'"
Benchmark 1: zsh -lc 'exit 0'
Time (mean ± σ): 54.5 ms ± 6.3 ms [User: 10.2 ms, System: 14.3 ms]
Range (min … max): 38.1 ms … 64.9 ms 78 runs
Benchmark 2: zsh -c 'exit 0' Time (mean ± σ): 6.5 ms ± 1.4 ms [User: 0.8 ms, System: 1.3 ms]
Range (min … max): 3.9 ms … 14.2 ms 424 runs
It's crazy how their startup time is 380 ms, and I suspect something else might be the reason, not just oh-my-zsh#!/usr/bin/env bash
""":"
if command -v uv > /dev/null
then exec uv run --script "$0" "$@"
else
exec python3 "$0" "$@"
fi
":"""
Overall, it literally looks like a better Alacritty alternative. The creator(s) did a great job!
My only wish is if asciinema natively supported saving into svg or gif. This would allow you to easily add it to markdown files without the need to install side apps to convert the output to those formats.
My dotfiles are private for now cause I need to clean some commits(I think I might have added some private info before) but I intend to publish them eventually