From c8ec8f9f402a5707224ca65e19482914b202c082 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Tue, 7 Dec 2021 16:49:23 +0000 Subject: [PATCH] Small changes to system and cPanel --- rc/client_scripts/cPanel | 25 ++++++++++++++++++++++++- rc/system | 7 +++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel index 57b635c..7fcf8a8 100755 --- a/rc/client_scripts/cPanel +++ b/rc/client_scripts/cPanel @@ -23,5 +23,28 @@ append_to_path /opt/cplint/bin append_to_path /root/bin export CDPATH=/usr/local +export ulc=/usr/local/cpanel -alias ulc="cd /usr/local/cpanel" +# This is the completer function for ulc. This completes any path that comes +# after the ulc as a path completion relative to $ulc +function _ulc { + local cur prev + + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + + # to be continued +} # _ulc + +function ulc { + path=$1 + + if [ -s "$1" ]; then + cd $ulc/$path + else + cd $ulc + fi +} # ulc +#alias ulc="cd /usr/local/cpanel" +alias cperl="$ulc/3rdparty/bin/perl" diff --git a/rc/system b/rc/system index 8b81616..4d2c672 100644 --- a/rc/system +++ b/rc/system @@ -27,4 +27,11 @@ case "$SYSNAME" in SYSNAME="cPanel" ;; + 10-2-99-60) + SYSNAME="Sandbox" + ;; + + 10-2-99-106) + SYSNAME="SandboxAL" + ;; esac -- 2.17.1