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 8c02e8b commit 687b017
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/fzf/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ apt-get update
apt-get install -y git

# Install fzf
su - "$_REMOTE_USER" -c "git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf"
su - "$_REMOTE_USER" -c "~/.fzf/install"
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"
11 changes: 6 additions & 5 deletions src/spaceship/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ echo "Installing dependencies..."
apt-get update
apt-get install -y zsh git

# Change to remote user
echo "Changing to remote user..."
# Use ZSH as default shell
echo "Permanently changing shell to ZSH..."
chsh -s "$(which zsh)"

# Install spaceship-prompt
mkdir -p "${_REMOTE_USER_HOME}/.zsh"
su - "$_REMOTE_USER" -c "git clone --depth=1 https://github.com/spaceship-prompt/spaceship-prompt.git ~/.zsh/spaceship"
su - "$_REMOTE_USER" -c "echo 'source \"~/.zsh/spaceship/spaceship.zsh\"' >> \"~/.zshrc\""
su - "$_REMOTE_USER" -c "mkdir -p ${_REMOTE_USER_HOME}/.zsh"
su - "$_REMOTE_USER" -c "git clone --depth=1 https://github.com/spaceship-prompt/spaceship-prompt.git ${_REMOTE_USER_HOME}/.zsh/spaceship"
su - "$_REMOTE_USER" -c "echo 'source \"${_REMOTE_USER_HOME}/.zsh/spaceship/spaceship.zsh\"' >> \"${_REMOTE_USER_HOME}/.zshrc\""

0 comments on commit 687b017

Please sign in to comment.