Skip to content

Commit

Permalink
Fixes;
Browse files Browse the repository at this point in the history
  • Loading branch information
braun-daniel committed Oct 10, 2024
1 parent 1a67ca1 commit 938a01a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/fzf/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@
set -e

# Install dependencies
echo "Installing git..."
echo "Installing git and wget..."
apt-get update
apt-get install -y git wget

# Install fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --all
# # Install Go
# echo "Installing Go..."
# GO_VERSION="1.20.5"
# wget https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz
# tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
# export PATH=$PATH:/usr/local/go/bin

# Install fzf as the remote user
_REMOTE_USER=${_REMOTE_USER:-"root"}
_REMOTE_USER_HOME=$(eval echo "~${_REMOTE_USER}")

su - "$_REMOTE_USER" -c "git clone --depth 1 https://github.com/junegunn/fzf.git ${_REMOTE_USER_HOME}/.fzf"
su - "$_REMOTE_USER" -c "${_REMOTE_USER_HOME}/.fzf/install --all"

0 comments on commit 938a01a

Please sign in to comment.