{{- if (ne .host.distro.family "windows") -}} #!/usr/bin/env bash {{ includeTemplate "universal/profile" }} {{ includeTemplate "universal/logg" }} ### Ensure Powerline is installed if ! command -v powerline > /dev/null; then install-software powerline fi ### Bash-it completions / plugins if command -v powerline > /dev/null; then source ~/.bashrc if command -v bash-it > /dev/null; then if [ -n "$BASH_IT" ]; then cd "$BASH_IT" || logg warn "The $BASH_IT directory does not exist" logg info 'Enabling bash-it completions' yes | bash-it enable completion defaults dirs docker docker-compose export git makefile ng npm ssh system vagrant logg info 'Enabling bash-it plugins' yes | bash-it enable plugin base blesh browser cht-sh dirs gitstatus powerline sudo xterm else logg warn 'The BASH_IT variable needs to be defined' fi else logg warn '`bash-it` is not available' fi else logg warn '`powerline` is not available' fi {{ end -}}