Justin Hileman
39cf45635b
Merge pull request #357 from MaxSchambach/feature/hide-python-version
...
Add option to hide python version
3 months ago
Justin Hileman
0f7bca6df5
Merge pull request #327 from seanhagen/master
...
Add Go prompt
3 months ago
Kristian Rekstad
dc70af567e
Use the new AWS_CREDENTIAL_EXPIRATION env var for aws-vault
...
Fixes #350
3 months ago
Maximilian Schambach
01c546af51
Update virtualenv python version prompt
4 months ago
Maximilian Schambach
7ff4d6a3b3
Add option to hide python version
4 months ago
Ramon Rüttimann
c2c47dc964
Fix pwd calculation for git worktrees
...
A refactor changed this block from a `set git_dir $PWD` to
`set git_dir $real_pwd`, but as `real_pwd` is a "static" variable and
not dynamically computed, this breaks within the `pushd` / `popd` flow.
Instead of using `$real_pwd`, we need to compute the *current* directory
by calling `__bobthefish_pwd` again.
Fixes #249 .
12 months ago
Taylor "Nekroze" Lawson
ed896b65c3
Fix error when k8s context defined but namespace isn't ( #343 )
...
Fixed simple mistake of not double qouting namespace so when
empty -z consumed -o as its input.
1 year ago
Taylor "Nekroze" Lawson
06ebe3b9af
Hide k8s context or namespace when they are 'default' ( #338 )
1 year ago
Sean Patrick Hagen
9ff7cd3f3c
Remove backslash to remove grep warning
...
New in grep 3.8 apparently is this warning: `grep: warning: stray \ before white
space`.
Explanation: https://github.com/koalaman/shellcheck/issues/2573
2 years ago
Justin Hileman
2dcfcab653
Fix invalid range in node segment
...
Fixes #326
2 years ago
Sean Patrick Hagen
4828218af5
Simplifying the prompt
2 years ago
Sean Patrick Hagen
d25d03ab4a
Better color setting for prompt
2 years ago
Sean Patrick Hagen
bb9c3f1946
Ensure we go up a directory each iteration
...
Whoops
2 years ago
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
2 years ago
Sean Patrick Hagen
fffbde266f
Better "find directory", copied from hg code
2 years ago
Sean Patrick Hagen
27f900076e
Some prompt cleanup
2 years ago
Sean Patrick Hagen
69e58a2f68
Better greping
2 years ago
Sean Patrick Hagen
20eb30bf4f
Removing some un-needed code
2 years ago
Sean Patrick Hagen
64a6f8ee18
More logic cleanup/fixing
2 years ago
Sean Patrick Hagen
1663a155f8
More logic fixing
2 years ago
Sean Patrick Hagen
4b3197d1b0
Sort out the logic a bit more
2 years ago
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.
2 years ago
Sean Patrick Hagen
1434509569
Add Go prompt
2 years ago
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
2 years ago
Hans Larsen
1eaed8c399
Add more options to conditionally show node version ( #315 )
2 years ago
Justin Hileman
332f23abd7
Use more portable `uname -n` rather than `hostname`.
...
Fixes #312
3 years ago
Nathan Gilbert
626bd39b00
update check for nvm to allow for functions
3 years ago
Justin Hileman
27c4df467d
Minor code style cleanup.
3 years ago
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
3 years ago
Nathan Gilbert
954fbc961b
move files to support fisher plugin standards ( #293 )
3 years ago