X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclient_scripts%2FcPanel;h=5892c1b7a2d9ec4ff5a7c5751f7e0cee585a1af4;hb=08970a8dff637ea4789e01cee8bdd25b4d67d697;hp=5cbe5a98adff232837311af4d323f64ae7e24cff;hpb=9a4db8c428886fdb7bb6244685e3c1e3e584c768;p=clearscm.git diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel old mode 100755 new mode 100644 index 5cbe5a9..5892c1b --- a/rc/client_scripts/cPanel +++ b/rc/client_scripts/cPanel @@ -1,10 +1,10 @@ #!/bin/bash ################################################################################ # -# File: $RCSfile: Audience,v $ +# File: $RCSfile: cPanel,v $ # Revision: $Revision: 1.0 $ -# Description: Client specific start up for Audience -# Author: Andrew@ClearSCM.com +# Description: Client specific start up for cPanel +# Author: Andrew@DeFaria.com # Created: Fri Nov 8 13:50:01 PST 2013 # Modified: $Date: $ # Language: bash @@ -15,6 +15,7 @@ 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 +prepend_to_path /usr/local/cpanel/bin append_to_path /usr/local/sbin append_to_path /usr/local/bin append_to_path /usr/sbin @@ -22,16 +23,36 @@ append_to_path /opt/cpanel/composer/bin append_to_path /opt/cplint/bin append_to_path /root/bin +# Useful aliases +alias makesb4='pushd $ulc; make -j4 sandbox; popd' +# Find code! +if [ -d ~/.vscode-server ]; then + codePath=$(dirname $(find ~/.vscode-server/bin -name code)) + if [ -n "$codePath" ]; then + append_to_path $codePath + else + echo "Warning - unable to find code" + fi +fi + # 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 ulw=/usr/local/cp-monitoring-whm-plugin +export ulb=/usr/local/cp-banners-plugin export CPANEL_TEAM='scrum' +# EA Tools +export EATOOLS_BUILD_DIR=~/git/ea-tools/SOURCES/ +export EATOOLS_BIN_DIR=~/git/ea-tools/SOURCES/ + #alias ulc="cd /usr/local/cpanel" alias perl="$ulc/3rdparty/bin/perl" +alias stencilwatch='npx stencil test --spec --watchAll' +alias stencilwatche2e='npx stencil test --spec --e2e --watchAll' # Unset PERLTIDY and PERLCRITIC as those variable override looking for # ~/.perltidyrc and ~/.perlcriticrc. @@ -70,3 +91,24 @@ function ulp { fi } # ulp + +function ulw { + path=$1 + + if [ -s "$1" ]; then + cd $ulw/$path + else + cd $ulw + fi +} # ulw + +function ulb { + path=$1 + + if [ -s "$1" ]; then + cd $ulb/$path + else + cd $ulb + fi +} # ulb +