Crc: Fish Shell not supported for "crc oc-env" (macOS/Darwin)

Created on 27 Feb 2020  路  3Comments  路  Source: code-ready/crc

General information

  • OS: macOS
  • Hypervisor: Hyper-V
  • Did you run crc setup before starting it (Yes/No)? YES

CRC version

crc version: 1.6.0+8ef676f
OpenShift version: 4.3.0 (embedded in binary)

CRC status

CRC VM:          Running
OpenShift:       Running (v4.3.0)
Disk Usage:      9.122GB of 32.72GB (Inside the CRC VM)
Cache Usage:     10.73GB
Cache Directory: /Users/mjarvis/.crc/cache

CRC config

_(empty)_

Host Operating System

ProductName:    Mac OS X
ProductVersion: 10.15.3
BuildVersion:   19D76

Steps to reproduce

  1. Install fish shell, e.g., brew install fish
  2. Run crc oc-env
  3. Roll eyes when bash is assumed 馃檪
  4. 4.

Expected

Something like this:

contains $HOME/.crc/bin $fish_user_paths; or set -U fish_user_paths $HOME/.crc/bin $fish_user_paths
# Run this command to configure your shell:
# eval (crc oc-env)

Actual

export PATH="/Users/mjarvis/.crc/bin:$PATH"
# Run this command to configure your shell:
# eval $(crc oc-env)

Logs

Logs not applicable

Most helpful comment

We usually don't add support for a shell, as it would need testing and integration on our end. However, you provided a patch and since it is not part of a critical path I think this is OK ;-), but you would need to ensure this works as expected.

All 3 comments

We usually don't add support for a shell, as it would need testing and integration on our end. However, you provided a patch and since it is not part of a critical path I think this is OK ;-), but you would need to ensure this works as expected.

Thank you! Yes, this change should only affect people using the fish shell, and it's only offering a suggestion on how to add the directory to their path, so thank you! I referenced the issue number in the commits.

Merged! Thank you ... :-D

Was this page helpful?
0 / 5 - 0 ratings