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 df9d605 commit 84aac3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/fzf/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ echo "Installing git and wget..."
apt-get update
apt-get install -y git wget

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

# Install fzf
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"
6 changes: 3 additions & 3 deletions src/spaceship/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ echo "Installing dependencies..."
apt-get update
apt-get install -y zsh git

# Use ZSH as default shell
echo "Permanently changing shell to ZSH..."
chsh -s "$(which zsh)"
# Prepare variables
_REMOTE_USER=${_REMOTE_USER:-"root"}
_REMOTE_USER_HOME=$(eval echo "~${_REMOTE_USER}")

# Install spaceship-prompt
su - "$_REMOTE_USER" -c "mkdir -p ${_REMOTE_USER_HOME}/.zsh"
Expand Down

0 comments on commit 84aac3f

Please sign in to comment.