Skip to content

Commit 1766b4d

Browse files
authored
Merge pull request #48 from hackerb9/windowsconvert
If using Microsoft Windows, use 'magick convert' instead of 'convert' so as to not run afoul of Microsoft's own "convert" binary.
2 parents c6cfe2e + 1ce9c09 commit 1766b4d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lsix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,16 @@ if ! command -v montage >/dev/null; then
5959
exit 1
6060
fi
6161

62+
shopt -s expand_aliases # Allow aliases for working around quirks.
63+
6264
if command -v gsed >/dev/null; then
63-
alias sed=gsed # Use GNU sed for MacOS & BSD
65+
alias sed=gsed # Use GNU sed for MacOS & BSD.
6466
fi
6567

68+
if [[ "$COMSPEC" ]]; then
69+
alias convert="magick convert" # Shun MS Windows' "convert" command.
70+
fi
71+
6672
cleanup() {
6773
echo -n $'\e\\' # Escape sequence to stop SIXEL.
6874
stty echo # Reset terminal to show characters.

0 commit comments

Comments
 (0)