Last active
July 3, 2017 03:15
-
-
Save chadrien/289f0ecb6fe5314504e6 to your computer and use it in GitHub Desktop.
My fishrc
This file contains 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
# 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