10 lines
165 B
Plaintext
10 lines
165 B
Plaintext
|
#!/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
|