-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sshrc
34 lines (29 loc) · 1.3 KB
/
.sshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## INCLUDE ##
function helpfuls() {
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
RS=$(tput sgr0)
BOLD=$(tput bold)
UL=$(tput smul)
if [ -f /usr/local/cpanel/cpanel ]
then CP="yes"
fi
if [ -f /usr/local/psa/version ]
then PL="yes"
fi
## HTTPD Defaults
event=$(printf "Timeout 60\nStartServers 3\nMaxRequestWorkers 400\nServerLimit 16\nThreadsPerChild 25\nMaxConnectionsPerChild 0\nKeepAlive On\nKeepAliveTimeout 5\nMaxKeepAliveRequests 100\n")
prefork=$(printf "Timeout 60\nStartServers 5\nMinSpareServers 5\nMaxSpareServers 10\nMaxRequestWorkers 256\nServerLimit 256\nMaxConnectionsPerChild 0\nKeepAlive On\nKeepAliveTimeout 5\nMaxKeepAliveRequests 100\n")
}
export -f helpfuls
## VIMRC ##
export VIMINIT="let \$MYVIMRC='$SSHHOME/.sshrc.d/.vimrc' | source \$MYVIMRC"
export BC_ENV_ARGS="$SSHHOME/.sshrc.d/.bcrc"
alias ?="printf \"Available Scripts:\n vs System Version Info\n showswap Shows System Swap Info & Usage\n vhosts Gathers helpful virtualhost information\n\""
alias vs="/bin/bash $SSHHOME/.sshrc.d/versions"
alias showswap="/bin/bash $SSHHOME/.sshrc.d/showswap"
alias ll="/bin/ls -lah"
alias vhosts="/bin/bash $SSHHOME/.sshrc.d/vhosts"