Last active
August 31, 2017 16:01
-
-
Save lance/4ec3211e6eded4ff168089a89d287aa8 to your computer and use it in GitHub Desktop.
Using minishift commands to set up a development environment in fish shell
This file contains hidden or 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
function minishift_oc_env | |
set -x PATH (command minishift oc-env | head -1 | cut -f2 -d\" | cut -f1 -d:) $PATH | |
end | |
function minishift_docker_env | |
for var in (command minishift docker-env) | |
set var (command echo $var | cut -f2 -d' ' | cut -f1,2 -d= | tr '=' '\n') | |
if test (count $var) -eq 2 | |
set -g -x {$var[1]} (command echo $var[2] | tr -d '"') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the output from the
minishift oc-env
andminishift docker-env
commands.