diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-01-24 01:11:57 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-01-24 01:11:57 +0800 |
commit | 0c4b318afd59afe12d41f0f002e9f6b9b765e3de (patch) | |
tree | 13f4127e7960566c44429f8122d3a313479f82f9 | |
parent | f92241cc90d60010be995ec9dbbcd9b774af5b09 (diff) |
update
-rw-r--r-- | alias | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -272,7 +272,8 @@ alias xc='xsel -ob | gcc -xc -' | |||
272 | 272 | ||
273 | # image | 273 | # image |
274 | image_vertical() { | 274 | image_vertical() { |
275 | convert "$@" -append output.png | 275 | suffix=${1##*.} |
276 | convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix} | ||
276 | } | 277 | } |
277 | image_horizontal() { | 278 | image_horizontal() { |
278 | convert "$@" +append output.png | 279 | convert "$@" +append output.png |