-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba3beb3
commit 93c49f1
Showing
7 changed files
with
93 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
eval $(gimme 1.18.3) | ||
eval $(gimme 1.20) | ||
PATH_add dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.idea | ||
.vscode | ||
goprompt | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- main: ./cmd/goprompt | ||
binary: frk | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
format: binary | ||
wrap_in_directory: false | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
|
||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var ( | ||
cmdInstall = &cobra.Command{ | ||
Use: "install", | ||
Short: "install the integration", | ||
} | ||
) | ||
|
||
func init() { | ||
cmdInstall.RunE = cmdInstallRun | ||
} | ||
|
||
// TODO: bundle in the plugin directory, and provide a way to extract it into users directory of choice. | ||
|
||
func cmdInstallRun(command *cobra.Command, args []string) error { | ||
fmt.Println(` | ||
# SETUP: | ||
# ------------------------------------------------------------------------------ | ||
# Assuming GoPrompt is installed in $(USR_BIN_DIR) | ||
# and zsh func in $(USR_ZSH_DIR) | ||
# ------------------------------------------------------------------------------ | ||
# $$ make setup >> ~/.zshrc" | ||
# ------------------------------------------------------------------------------ | ||
# Add this to your ~/.zshenv | ||
# ------------------------------------------------------------------------------ | ||
# PROMPT_ASYNC_ZLE: ------------------------------------------------------------ | ||
path+=( "$(USR_BIN_DIR)" ) | ||
fpath+=( "$(USR_ZSH_DIR)" ) | ||
autoload -Uz promptinit | ||
promptinit && prompt_asynczle_setup | ||
# ------------------------------------------------------------------------------ | ||
`) | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters