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