Only display the name of the conda-enviroment
matchai opened this issue ยท 2 comments
Please take a look at the associated PR: spaceship-prompt/spaceship-prompt#597
๐ spacefish-bot โ Issue copied from: spaceship-prompt/spaceship-prompt#589.
I often use (due to company-policy where to place things) conda-enviroments, which are not in the default conda-envs folder. Spaceship then displayes the whole path, which takes a lot of spaces and makes the header often not fit into one line.
Example:
kurscheidt in XXX at XXX on ๎ master took 13s
โ source activate really/really/really/really/really_long_path/envs/enviroment
kurscheidt in XXX at XXX on ๎ master via ๐
really/really/really/really/really_long_path/envs/enviroment
โ
I think a better way would be to only display the folder-name and not the whole path. I can consult conda if I want to know the whole path.
I think this issue is irrelevant to spacefish
since spacefish
doesn't show the conda environment name at all, but only the conda version (which I think is useless but is a separate argument). Any display of conda environment that's happening is from conda itself. In spaceship-prompt
, the prompt itself displays the active conda environment.