dotfiles/cli/lf.sh

19 lines
359 B
Bash
Raw Normal View History

2021-03-02 02:52:31 +00:00
#!/bin/sh
set -e
DIR=$(dirname "$(readlink -f "$0")")
. "$DIR/../env.sh"
if ! has_cmd go; then
"$PDIR/devel/go.sh"
fi
log 'Setting up lf'
# install lf
2021-06-24 03:17:06 +00:00
if ! has_cmd "lf"; then
env GOPROXY= CGO_ENABLED=0 GO111MODULE=on go get -u -ldflags="-s -w" github.com/gokcehan/lf
fi
2021-03-02 02:52:31 +00:00
# linking configuration files
lnsf "$DIR/lf/lfrc" "$XDG_CONFIG_HOME/lf/lfrc"