X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclient_scripts%2FcPanel;h=5cbe5a98adff232837311af4d323f64ae7e24cff;hb=9a4db8c428886fdb7bb6244685e3c1e3e584c768;hp=7fcf8a86fe0eb7ac8cf2c1c8e0201d0934213190;hpb=c8ec8f9f402a5707224ca65e19482914b202c082;p=clearscm.git diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel index 7fcf8a8..5cbe5a9 100755 --- a/rc/client_scripts/cPanel +++ b/rc/client_scripts/cPanel @@ -12,9 +12,9 @@ # (c) Copyright 2013, ClearSCM, Inc., all rights reserved. # ################################################################################ -append_to_path /usr/local/cpanel/3rdparty/lib/path-bin -append_to_path /usr/local/cpanel/3rdparty/bin -append_to_path /usr/local/cpanel/build-tools +prepend_to_path /usr/local/cpanel/build-tools +prepend_to_path /usr/local/cpanel/3rdparty/lib/path-bin +prepend_to_path /usr/local/cpanel/3rdparty/bin append_to_path /usr/local/sbin append_to_path /usr/local/bin append_to_path /usr/sbin @@ -22,8 +22,21 @@ append_to_path /opt/cpanel/composer/bin append_to_path /opt/cplint/bin append_to_path /root/bin +# Intended to be used for root +WIZARD="CPanel" + export CDPATH=/usr/local export ulc=/usr/local/cpanel +export ulp=/usr/local/cp-monitoring-cpanel-plugin +export CPANEL_TEAM='scrum' + +#alias ulc="cd /usr/local/cpanel" +alias perl="$ulc/3rdparty/bin/perl" + +# Unset PERLTIDY and PERLCRITIC as those variable override looking for +# ~/.perltidyrc and ~/.perlcriticrc. +unset PERLTIDY +unset PERLCRITIC # This is the completer function for ulc. This completes any path that comes # after the ulc as a path completion relative to $ulc @@ -46,5 +59,14 @@ function ulc { cd $ulc fi } # ulc -#alias ulc="cd /usr/local/cpanel" -alias cperl="$ulc/3rdparty/bin/perl" + +function ulp { + path=$1 + + if [ -s "$1" ]; then + cd $ulp/$path + else + cd $ulp + fi +} # ulp +