Skip to content

Commit

Permalink
update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
geloman committed Nov 24, 2024
1 parent 422bcc1 commit 22d34a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dockerhub-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ jobs:
push: true
tags: |
"geloman/dotfiles:latest"
"geloman/dotfiles:${GITHUB_SHA:0:7}"
9 changes: 6 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
## TMUX PLUGIN MANAGER
#---------------------------------------------------------------------
install_tmux_tpm() {
[ -d ~/.tmux/plugins/tpm ] && return
protocol="https"
remote_src="github.com/tmux-plugins/tpm"
destination="~/.tmux/plugins/tpm"
echo "Installing tmux-plugins/tpm......................................"
git clone --depth 1 https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
[ -n "$(command -v tmux)" ] && TMUX_PLUGIN_MANAGER_PATH="~/.tmux/plugins/" tmux -c '~/.tmux/plugins/tpm/bindings/install_plugins'
[ -d "$destination" ] && return
[ "$protocol" = "ssh" ] && git clone --depth 1 "git@${remote_src}.git" "$destination"
[ "$protocol" = "https" ] && git clone --depth 1 "https://${remote_src}" "$destination"
}

## FUZZY FINDER
Expand Down

0 comments on commit 22d34a1

Please sign in to comment.