7fcf8a86fe0eb7ac8cf2c1c8e0201d0934213190
[clearscm.git] / rc / client_scripts / cPanel
1 #!/bin/bash
2 ################################################################################
3 #
4 # File:         $RCSfile: Audience,v $
5 # Revision:     $Revision: 1.0 $
6 # Description:  Client specific start up for Audience
7 # Author:       Andrew@ClearSCM.com
8 # Created:      Fri Nov  8 13:50:01 PST 2013
9 # Modified:     $Date: $
10 # Language:     bash
11 #
12 # (c) Copyright 2013, ClearSCM, Inc., all rights reserved.
13 #
14 ################################################################################
15 append_to_path /usr/local/cpanel/3rdparty/lib/path-bin
16 append_to_path /usr/local/cpanel/3rdparty/bin
17 append_to_path /usr/local/cpanel/build-tools
18 append_to_path /usr/local/sbin
19 append_to_path /usr/local/bin
20 append_to_path /usr/sbin
21 append_to_path /opt/cpanel/composer/bin
22 append_to_path /opt/cplint/bin
23 append_to_path /root/bin
24
25 export CDPATH=/usr/local
26 export ulc=/usr/local/cpanel
27
28 # This is the completer function for ulc. This completes any path that comes
29 # after the ulc as a path completion relative to $ulc
30 function _ulc {
31   local cur prev
32
33   COMPREPLY=()
34   cur="${COMP_WORDS[COMP_CWORD]}"
35   prev="${COMP_WORDS[COMP_CWORD-1]}"
36
37   # to be continued
38 } # _ulc
39
40 function ulc {
41   path=$1
42
43   if [ -s "$1" ]; then
44     cd $ulc/$path
45   else
46     cd $ulc
47   fi
48 } # ulc
49 #alias ulc="cd /usr/local/cpanel"
50 alias cperl="$ulc/3rdparty/bin/perl"