Commit Graph

18 Commits

Author SHA1 Message Date
Sean Patrick Hagen
bb9c3f1946
Ensure we go up a directory each iteration
Whoops
2022-06-17 12:58:52 -07:00
Sean Patrick Hagen
92a2e46734
Update loop for finding go.mod
Also had to move `set -l real_pwd (__bobthefish_pwd)` above the prompts so that
`$real_pwd` is available inside the prompt function
2022-06-17 12:48:58 -07:00
Sean Patrick Hagen
fffbde266f
Better "find directory", copied from hg code 2022-06-17 12:41:49 -07:00
Sean Patrick Hagen
27f900076e
Some prompt cleanup 2022-06-17 12:40:18 -07:00
Sean Patrick Hagen
69e58a2f68
Better greping 2022-06-17 12:40:13 -07:00
Sean Patrick Hagen
20eb30bf4f
Removing some un-needed code 2022-06-17 12:26:05 -07:00
Sean Patrick Hagen
64a6f8ee18
More logic cleanup/fixing 2022-06-17 12:21:52 -07:00
Sean Patrick Hagen
1663a155f8
More logic fixing 2022-06-17 11:54:52 -07:00
Sean Patrick Hagen
4b3197d1b0
Sort out the logic a bit more 2022-06-17 11:41:50 -07:00
Sean Patrick Hagen
9ca1260fc5
Rework __bobthefish_prompt_golang to be more like "rubies" prompt
First checks to see if `asdf` is installed. If it is, checks to see if either of
the plugins ( `golang` or `go-sdk` ) that install a version of Go have an
installed version. If they do, use that version.

If `asdf` isn't installed, check the `go.mod` file. If in a folder that has a
`go.mod` or a parent folder has a `go.mod`, check that file for the Go version.

Lastly, check if there's a `go` executable on the current path. If there isn't
set a flag so that the go version will be printed out in red rather than blue.
2022-06-17 11:24:14 -07:00
Sean Patrick Hagen
1434509569
Add Go prompt 2022-06-10 15:23:32 -07:00
Shane Mook
14a6f2b317
Update ruby asdf support for output of asdf v0.8.1 (#305)
- asdf not output three columns for for `asdf current version`, the first being the plugin name
- Update the provenance format to match
2022-04-05 13:16:16 -04:00
Hans Larsen
1eaed8c399
Add more options to conditionally show node version (#315) 2022-02-03 02:15:51 -05:00
Justin Hileman
332f23abd7 Use more portable uname -n rather than hostname.
Fixes #312
2021-11-05 10:16:55 -04:00
Nathan Gilbert
626bd39b00 update check for nvm to allow for functions 2021-01-27 19:51:15 -08:00
Justin Hileman
27c4df467d Minor code style cleanup. 2021-01-24 14:25:02 -08:00
Wes Baker
af5aac28c4
Add FNM as an alternative to NVM (#292)
* Add FNM as an alternative to NVM
* Made the __bobthefish_prompt_nvm generic for nvm and fnm
* Hide errors on node_manager current
* Check for color_nvm and set color_node based on that
2021-01-24 14:14:30 -08:00
Nathan Gilbert
954fbc961b
move files to support fisher plugin standards (#293) 2021-01-23 10:47:21 -08:00