From 98437efb15e435117e66f14dd542cf9ddddf67d8 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Mon, 30 Mar 2015 11:13:01 +0000 Subject: [PATCH] Moved nginx settings to plugin. These settings shouldn't be in the profile template, as they only make sense when used with nginx. If you're using nginx, you can enable the nginx plugin. --- plugins/available/nginx.plugin.bash | 6 ++++++ template/bash_profile.template.bash | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/plugins/available/nginx.plugin.bash b/plugins/available/nginx.plugin.bash index 660b5035..8e8b7346 100644 --- a/plugins/available/nginx.plugin.bash +++ b/plugins/available/nginx.plugin.bash @@ -1,6 +1,12 @@ cite about-plugin about-plugin 'manage your nginx service' +# Set the path nginx +export NGINX_PATH='/opt/nginx' + +# Add nginx to the path +export PATH=$PATH:$NGINX_PATH/sbin + function nginx_reload() { about 'reload your nginx config' group 'nginx' diff --git a/template/bash_profile.template.bash b/template/bash_profile.template.bash index a34b1f82..35104ece 100755 --- a/template/bash_profile.template.bash +++ b/template/bash_profile.template.bash @@ -1,10 +1,5 @@ #!/usr/bin/env bash -# Add nginx to the path -PATH=$PATH:/opt/nginx/sbin - -export PATH - # Path to the bash it configuration export BASH_IT=$HOME/.bash_it @@ -15,9 +10,6 @@ export BASH_IT_THEME='bobby' # Your place for hosting Git repos. I use this for private repos. export GIT_HOSTING='git@git.domain.com' -# Set the path nginx -export NGINX_PATH='/opt/nginx' - # Don't check mail when opening terminal. unset MAILCHECK