Skip to content

Instantly share code, notes, and snippets.

@aldenks
Last active January 13, 2016 21:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aldenks/417f932e845342e74d33 to your computer and use it in GitHub Desktop.
Save aldenks/417f932e845342e74d33 to your computer and use it in GitHub Desktop.
Fish shell command to configure shell for default vm
eval (docker-machine env default | sed 's/export/set -x/g' | sed 's/=/ /g' | tr '\n' ';')
@aldenks
Copy link
Author

aldenks commented Aug 30, 2015

you probably don't want to do this, just set the environment variable SHELL to the path of your fish binary and docker-machine env default will print out fish shell compatible commands.

for example, you could put this in ~/.config/fish/config.fish:

set SHELL (which fish)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment