FollieHiyuki-dotfiles/setup/nnn.sh
FollieHiyuki f23b5abe65
setup: revive nnn.sh setup script
Update READE, delete youbest shell alias
2021-06-05 22:00:25 +03:00

18 lines
307 B
Bash

#!/bin/sh -e
# Needs musl-fts, ncurses
git clone https://github.com/FollieHiyuki/nnn.git
cd nnn
export LDLIBS=-lfts
if command -v doas >/dev/null
then
doas -- make O_NERD=1 O_NOBATCH=1 O_GITSTATUS=1 PREFIX=/usr install
else
sudo make O_NERD=1 O_NOBATCH=1 O_GITSTATUS=1 PREFIX=/usr install
fi
cd ..