Skip to content

Add TPM configuration #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/gitmux
/gitmux.conf
13 changes: 13 additions & 0 deletions tmux-gitmux.tmux
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BINARY="$CURRENT_DIR/gitmux"
CONFIG="$CURRENT_DIR/gitmux.conf"

if [ ! -f "$BINARY" ]; then
tmux split-window "cd $CURRENT_DIR && go build -o gitmux && echo 'Press any key to continue...' && read -k1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to support rebuilding the binary when the plugin is updated.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe best would be to not require the user to have the go toolchain, but automatically download the binary release for their arch/os.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell, tpm just pulls from git when doing an update. I looked through the docs some and don't see a concept of an update hook for us to leverage.

It seems like this may be more complicated than it appears. Look out for scope creep.

fi

if [ ! -f "$CONFIG" ]; then
( cd "$CURRENT_DIR" ; ./gitmux -printcfg > gitmux.conf )
fi