More cPanel specific changes
[clearscm.git] / rc / client_scripts / cPanel
index 57b635c..2e80817 100755 (executable)
@@ -23,5 +23,35 @@ append_to_path /opt/cplint/bin
 append_to_path /root/bin
 
 export CDPATH=/usr/local
+export ulc=/usr/local/cpanel
+export CPANEL_TEAM='scrum'
 
-alias ulc="cd /usr/local/cpanel"
+#alias ulc="cd /usr/local/cpanel"
+alias cperl="$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
+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