Skip to content

Instantly share code, notes, and snippets.

@chadrien
Last active July 3, 2017 03:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chadrien/289f0ecb6fe5314504e6 to your computer and use it in GitHub Desktop.
Save chadrien/289f0ecb6fe5314504e6 to your computer and use it in GitHub Desktop.
My fishrc
# vim: ft=fish
function __fish_init_boot2docker_env
for dockerVar in (boot2docker shellinit 2>/dev/null | sed -e 's/export/set -xU/' -e 's/=/ /');
eval $dockerVar
end
end
function boot2docker
command boot2docker $argv
if test "$argv[1]" = "up"
__fish_init_boot2docker_env
end
end
function __fish_init_dockerosx_env
set -e DOCKER_TLS_VERIFY
set -e DOCKER_CERT_PATH
for dockerVar in (docker-osx env | sed -e 's/export/set -xU/' -e 's/=/ /');
eval $dockerVar
end
end
function docker-osx
command docker-osx $argv
if test "$argv[1]" = "start"
__fish_init_dockerosx_env
end
end
function vim
mvim -v $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment