diff options
Diffstat (limited to 'alias')
| -rw-r--r-- | alias | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -273,7 +273,8 @@ alias xc='xsel -ob | gcc -xc -' | |||
| 273 | 273 | ||
| 274 | # image | 274 | # image |
| 275 | image_vertical() { | 275 | image_vertical() { |
| 276 | convert "$@" -append output.png | 276 | suffix=${1##*.} |
| 277 | convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix} | ||
| 277 | } | 278 | } |
| 278 | image_horizontal() { | 279 | image_horizontal() { |
| 279 | convert "$@" +append output.png | 280 | convert "$@" +append output.png |