aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-01-24 01:11:57 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-01-24 01:11:57 +0800
commit0c4b318afd59afe12d41f0f002e9f6b9b765e3de (patch)
tree13f4127e7960566c44429f8122d3a313479f82f9
parentf92241cc90d60010be995ec9dbbcd9b774af5b09 (diff)
update
-rw-r--r--alias3
1 files changed, 2 insertions, 1 deletions
diff --git a/alias b/alias
index 4326681..60e49b7 100644
--- a/alias
+++ b/alias
@@ -272,7 +272,8 @@ alias xc='xsel -ob | gcc -xc -'
272 272
273# image 273# image
274image_vertical() { 274image_vertical() {
275 convert "$@" -append output.png 275 suffix=${1##*.}
276 convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix}
276} 277}
277image_horizontal() { 278image_horizontal() {
278 convert "$@" +append output.png 279 convert "$@" +append output.png