Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Fish shell support #297

Closed
unbalancedparentheses opened this issue Oct 21, 2014 · 4 comments
Closed

Fish shell support #297

unbalancedparentheses opened this issue Oct 21, 2014 · 4 comments

Comments

@unbalancedparentheses
Copy link

I am a http://fishshell.com/ user. The shell is awesome but it is on purpose not 100% POSIX compliant. I would be glad to add code to https://github.com/boot2docker/boot2docker-cli/blob/master/cmds.go#L194-L204 so that it prints how to export the variables in fish.

The equivalent of

export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/unbalancedparentheses/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1

In fish would be

set -x DOCKER_HOST=tcp://192.168.59.103:2376
set -x DOCKER_CERT_PATH=/Users/unbalancedparentheses/.boot2docker/certs/boot2docker-vm
set -x DOCKER_TLS_VERIFY=1

I could also detect if the user is using fish with basename $SHELL and print the correct way to export the variables.

Let me know what you think so that I code it.

Thanks in advance!

@tianon
Copy link
Contributor

tianon commented Oct 22, 2014

Indeed! See #295, where @douglascamata has rebased someone else's PR to do exactly this.

See also the discussion on boot2docker/boot2docker#585 where we're talking about changing that to export everything regardless of what's set (since that'd be even simpler logic still).

@ghost
Copy link

ghost commented Feb 21, 2015

Just adding myself here.

@rstacruz
Copy link

time to close this now.

@tianon
Copy link
Contributor

tianon commented Feb 26, 2018

Sorry, this repository is long-since deprecated in favor of Docker Toolbox (whose usage is now also discouraged in favor of Docker for Windows and Docker for Mac).

@tianon tianon closed this as completed Feb 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants