X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclient_scripts%2FcPanel;h=7fcf8a86fe0eb7ac8cf2c1c8e0201d0934213190;hb=64e73c7c9b6ae49d19515b5737fe227f40a64a21;hp=57b635c654c9734239e64a68a068eaad1083a835;hpb=72c91d26aa739e713d088c89610e1ba48c5c923c;p=clearscm.git 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"