226 karma · joined Mar 2, 2023 (3y ago) · 102 submissions
comment 1d ago · link · parent
comment 1d ago · link · parent
comment 7mo ago · link · parent
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.comment 7mo ago · link · parent
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...
comment 8mo ago · link · parent
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
comment 10mo ago · link · parent
$ 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-zshcomment 10mo ago · link · parent
comment 10mo ago · link · parent
comment 10mo ago · link · parent
#!/usr/bin/env bash
""":"
if command -v uv > /dev/null
then exec uv run --script "$0" "$@"
else
exec python3 "$0" "$@"
fi
":"""
comment 11mo ago · link · parent
comment 1y ago · link · parent
Overall, it literally looks like a better Alacritty alternative. The creator(s) did a great job!
comment 1y ago · link · parent