Skip to content

Instantly share code, notes, and snippets.

# Make sure bash-completion is installed
brew install bash-completion
# Use completion from Docker for Mac
ln -s /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion $(brew --prefix)/etc/bash_completion.d/docker
ln -s /Applications/Docker.app/Contents/Resources/etc/docker-machine.bash-completion $(brew --prefix)/etc/bash_completion.d/docker-machine
ln -s /Applications/Docker.app/Contents/Resources/etc/docker-compose.bash-completion $(brew --prefix)/etc/bash_completion.d/docker-compose
@mangan77
mangan77 / DatabaseConfiguration.java
Last active February 18, 2018 14:46
Spring Boot: Populate configuration bean from external YAML config file.
@Configuration
@PropertySource(name = "databaseConfig", value = "classpath:database.yml", factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "database")
@Getter
@Setter
public class DatabaseConfiguration {
private String host;
}