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 f313a89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/dockerhub-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get short sha
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -25,4 +27,4 @@ jobs:
push: true
tags: |
"geloman/dotfiles:latest"
"geloman/dotfiles:${GITHUB_SHA:0:7}"
"geloman/dotfiles:${SHORT_SHA}"
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 f313a89

Please sign in to comment.