album=(${ts[2,-1]})
}
lossless=""
- [[ -d $name ]] && {
+ if [[ -d $name ]] ; then
wvs=($name/**/*.wv(N))
[[ ${#wvs} -gt 0 ]] && lossless=1
- } || {
+ else
[[ $name:e = wv ]] && lossless=1
- }
+ fi
cols=()
for col ($COLS) [[ -e cols/$col/$name ]] && cols=($cols $col)
# removes all empty metainformation fields, removed fields
# with uuid:s, removes Format (that is application/pdf).
-set -e
+setopt ERR_EXIT
opts=(
-dQUIET
-dBATCH
#!/usr/bin/env zsh
-set -e
-setopt EXTENDED_GLOB
+setopt ERR_EXIT EXTENDED_GLOB
usage() {
cat <<EOF
#!/usr/bin/env zsh
-set -e
+setopt ERR_EXIT
tmp=`mktemp`
trap "rm -f $tmp.pnm $tmp.jxl" HUP PIPE INT QUIT TERM EXIT
case $1:e in
#!/usr/bin/env zsh
-set -e
+setopt ERR_EXIT
zparseopts -D -A info url: descr: out:
tags=`mktemp`
trap "rm -f $tags" HUP PIPE INT QUIT TERM EXIT
#!/usr/bin/env zsh
-set -e
+setopt ERR_EXIT
[[ -n "$NNN_PIPE" ]]
autoload ~/.zsh/functions/cf
cf $1
#!/usr/bin/env zsh
-set -e
+setopt ERR_EXIT
sel=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
[[ -s $sel ]]
tgts=$(xargs -0 -L1 < $sel)
#!/usr/bin/env zsh
cd $2
-set -e
+setopt ERR_EXIT
fpath=(~/.tmux/functions.zsh $fpath)
autoload tmux-fzf-$1
tmp=`mktemp`
#!/usr/bin/env zsh
-set -e
+setopt ERR_EXIT
zmodload zsh/zpty
zpty zshfe zsh
zpty -w zshfe "print ZSHFE $*"$'\t EFHSZ\nexit\n'