scripts/lf-run

10 lines
165 B
Plaintext
Raw Normal View History

2022-12-26 14:20:37 +01:00
#!/bin/sh
set -e
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
lf "$@"
else
[ ! -d "$HOME/.cache/lf" ] && mkdir --parents "$HOME/.cache/lf"
lf "$@" 3>&-
fi