lmao
This commit is contained in:
parent
8873b62a57
commit
b15108ceed
1 changed files with 5 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
# Shows images, scaled to terminal dimensions, via kitty's icat.
|
||||
# Designed for image-feeds like xkcd.com.
|
||||
# by Timm Heuss (https://github.com/heussd/) - CC-BY 4.0
|
||||
|
@ -8,12 +8,11 @@
|
|||
# macro i set pager "$PATHTOTHIS/kitty-img-pager"; open; set pager internal
|
||||
# 2) Now you use this pager in articleview using the hotkey <comma>+<i>
|
||||
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
set -o nounset
|
||||
#set -o errexit
|
||||
#set -o pipefail
|
||||
#set -o nounset
|
||||
|
||||
|
||||
image=$(grep -E -o "https?://[a-zA-Z0-9./?=_%:-]*" < "${#}" | tail -1)
|
||||
image=$(grep -E -o "https?://[a-zA-Z0-9./?=_%:-]*" < "${1}" | tail -1)
|
||||
|
||||
# Detect terminal dimensions
|
||||
dims="$(tput cols)x$(tput lines)@0x0"
|
||||
|
|
Loading…
Reference in a new issue