Skip to content

Commit

Permalink
Add tab completion for git and docker
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Dec 3, 2015
1 parent 34366e8 commit 0a4e448
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ This is a Vagrant box to test Windows Docker Containers on a Windows Server 2016

After provisioning the box has the following tools installed:

* docker TP4 engine and client
* docker-machine 0.5.1
* Docker TP4 engine and client
* docker-machine 0.5.2
* docker-compose 1.5.1
* Docker Tab completion for PowerShell (posh-docker)
* Chocolatey
* git command line
* ssh client
* Git command line
* Git Tab completion for PowerShell (posh-git)
* SSH client

Optionally you can create a Hyper-V Docker Linux machine and have a multi architecture experience in one VM.

Expand Down Expand Up @@ -40,7 +42,7 @@ To start the VM with [Vagrant](https://vagrantup.com) run this command
vagrant up --provider vmware_fusion
```

You only have to logout and login once to have the Docker tools in user vagrant's PATH.
You only have to logout and login once to have the Docker tools in user vagrant's PATH.

## Create some Windows Docker Container images

Expand Down
2 changes: 2 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "shell", path: "scripts/install-chocolatey.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-git.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-dockertools.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-posh-docker.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-posh-git.ps1", privileged: false
#config.vm.provision "shell", path: "scripts/create-hyperv-linux-docker-machine.ps1", privileged: false
#config.vm.provision "shell", path: "scripts/update-nightly-docker.ps1", privileged: false
end
6 changes: 6 additions & 0 deletions scripts/install-posh-docker.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# install docker tab completion (https://github.com/samneirinck/posh-docker)
Push-Location Documents
git clone https://github.com/samneirinck/posh-docker
cd posh-docker
. .\install.ps1
Pop-Location
8 changes: 8 additions & 0 deletions scripts/install-posh-git.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# install git tab completion (https://github.com/dahlbyk/posh-git)
#Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
#Install-Module posh-git -Scope CurrentUser
Push-Location Documents
git clone https://github.com/dahlbyk/posh-git
cd posh-git
. .\install.ps1
Pop-Location

0 comments on commit 0a4e448

Please # to comment.