From a95457ef4082b47eb41e1f794b88c0db3cd9ab76 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Thu, 10 Feb 2022 21:47:58 +0000 Subject: [PATCH] More updates for cPanel --- rc/client_scripts/cPanel | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel index c6d5bc1..c66c9c6 100755 --- 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,6 +23,15 @@ append_to_path /opt/cpanel/composer/bin append_to_path /opt/cplint/bin append_to_path /root/bin +# Find code! +codePath=$(dirname $(find ~/.vscode-server/bin -name code)) + +if [ -n "$codePath" ]; then + append_to_path $codePath +else + echo "Warning - unable to find code" +fi + # Intended to be used for root WIZARD="CPanel" @@ -29,6 +39,7 @@ 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' #alias ulc="cd /usr/local/cpanel" @@ -82,3 +93,13 @@ function ulw { fi } # ulw +function ulb { + path=$1 + + if [ -s "$1" ]; then + cd $ulb/$path + else + cd $ulb + fi +} # ulb + -- 2.17.1