colorgrep.sh000064400000000311150251717470007100 0ustar00# color-grep initialization /usr/libexec/grepconf.sh -c || return alias grep='grep --color=auto' 2>/dev/null alias egrep='egrep --color=auto' 2>/dev/null alias fgrep='fgrep --color=auto' 2>/dev/null lang.sh000064400000005217150251717470006037 0ustar00# /etc/profile.d/lang.sh - set i18n stuff sourced=0 if [ -n "$LANG" ]; then saved_lang="$LANG" [ -f "$HOME/.i18n" ] && . "$HOME/.i18n" && sourced=1 LANG="$saved_lang" unset saved_lang else for langfile in /etc/locale.conf "$HOME/.i18n" ; do [ -f $langfile ] && . $langfile && sourced=1 done fi if [ "$sourced" = 1 ]; then [ -n "$LANG" ] && export LANG || unset LANG [ -n "$LC_ADDRESS" ] && export LC_ADDRESS || unset LC_ADDRESS [ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE [ -n "$LC_IDENTIFICATION" ] && export LC_IDENTIFICATION || unset LC_IDENTIFICATION [ -n "$LC_MEASUREMENT" ] && export LC_MEASUREMENT || unset LC_MEASUREMENT [ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES [ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY [ -n "$LC_NAME" ] && export LC_NAME || unset LC_NAME [ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC [ -n "$LC_PAPER" ] && export LC_PAPER || unset LC_PAPER [ -n "$LC_TELEPHONE" ] && export LC_TELEPHONE || unset LC_TELEPHONE [ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME if [ -n "$LC_ALL" ]; then if [ "$LC_ALL" != "$LANG" ]; then export LC_ALL else unset LC_ALL fi else unset LC_ALL fi [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET consoletype=$CONSOLETYPE if [ -z "$consoletype" ]; then consoletype=$(/sbin/consoletype stdout) fi if [ -n "$LANG" ]; then case $LANG in *.utf8*|*.UTF-8*) if [ "$TERM" = "linux" ]; then if [ "$consoletype" = "vt" ]; then case $LANG in ja*) LANG=en_US.UTF-8 ;; ko*) LANG=en_US.UTF-8 ;; si*) LANG=en_US.UTF-8 ;; zh*) LANG=en_US.UTF-8 ;; ar*) LANG=en_US.UTF-8 ;; fa*) LANG=en_US.UTF-8 ;; he*) LANG=en_US.UTF-8 ;; en_IN*) ;; *_IN*) LANG=en_US.UTF-8 ;; esac fi fi ;; *) if [ "$TERM" = "linux" ]; then if [ "$consoletype" = "vt" ]; then case $LANG in ja*) LANG=en_US ;; ko*) LANG=en_US ;; si*) LANG=en_US ;; zh*) LANG=en_US ;; ar*) LANG=en_US ;; fa*) LANG=en_US ;; he*) LANG=en_US ;; en_IN*) ;; *_IN*) LANG=en_US ;; esac fi fi ;; esac fi unset SYSFONTACM SYSFONT consoletype fi unset sourced unset langfile colorls.csh000064400000003315150251717470006733 0ustar00# skip everything for non-interactive shells if (! $?prompt) exit # color-ls initialization if ( $?USER_LS_COLORS ) then if ( "$USER_LS_COLORS" != "" ) then #when USER_LS_COLORS defined do not override user #specified LS_COLORS and use them goto finish endif endif alias ll 'ls -l' alias l. 'ls -d .*' set COLORS=/etc/DIR_COLORS if ($?TERM) then if ( -e "/etc/DIR_COLORS.256color" ) then if ( "`/usr/bin/tput colors`" == "256" ) then set COLORS=/etc/DIR_COLORS.256color endif endif if ( -e "/etc/DIR_COLORS.$TERM" ) then set COLORS="/etc/DIR_COLORS.$TERM" endif endif if ( -f ~/.dircolors ) set COLORS=~/.dircolors if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors if ($?TERM) then if ( -f ~/.dircolors."$TERM" ) set COLORS=~/.dircolors."$TERM" if ( -f ~/.dir_colors."$TERM" ) set COLORS=~/.dir_colors."$TERM" endif set INCLUDE="`/usr/bin/cat "$COLORS" | /usr/bin/grep '^INCLUDE' | /usr/bin/cut -d ' ' -f2-`" if ( ! -e "$COLORS" ) exit set _tmp="`/usr/bin/mktemp .colorlsXXX -q --tmpdir=/tmp`" #if mktemp fails, exit when include was active, otherwise use $COLORS file if ( "$_tmp" == '' ) then if ( "$INCLUDE" == '' ) then eval "`/usr/bin/dircolors -c $COLORS`" endif goto cleanup endif if ( "$INCLUDE" != '' ) /usr/bin/cat "$INCLUDE" >> $_tmp /usr/bin/grep -v '^INCLUDE' "$COLORS" >> $_tmp eval "`/usr/bin/dircolors -c $_tmp`" /usr/bin/rm -f $_tmp if ( "$LS_COLORS" == '' ) exit cleanup: set color_none=`/usr/bin/sed -n '/^COLOR.*none/Ip' < $COLORS` if ( "$color_none" != '' ) then unset color_none exit endif unset color_none unset _tmp unset INCLUDE unset COLORS finish: alias ll 'ls -l --color=auto' alias l. 'ls -d .* --color=auto' alias ls 'ls --color=auto' which2.csh000064400000000244150251717470006440 0ustar00# Initialization script for csh # export AFS if you are in AFS environment # alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' which2.sh000064400000000251150251717470006273 0ustar00# Initialization script for bash and sh # export AFS if you are in AFS environment alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' cpanel-user-commands.sh000064400000000570150251717470011130 0ustar00#cPanel Added User Commands -- BEGIN # Insert an entry into the PATH after all of the user's home directory paths. PATH="$(/usr/local/cpanel/3rdparty/bin/perl -e 'print join ":", map { ( ( !/^\Q$ENV{HOME}\E/ && !$seen++ && $_ ne $ARGV[0] ? @ARGV : () ), $_ ) } split /:/, $ENV{PATH};' /usr/local/cpanel/3rdparty/lib/path-bin)" export PATH #cPanel Added User Commands -- END cpanel-php-composer.sh000075500000001044150251717470010767 0ustar00# This script amends the PATH variable for interactive shells so # that the composer command can be run. ################################################################# ## NOTE: If you want to disable this file, comment out or ## ## delete the 'export' line below. If you simply delete the ## ## file itself, then it will come back the next time that you ## ## update cPanel & WHM. ## ################################################################# export PATH="$PATH:/opt/cpanel/composer/bin" lang.csh000064400000003252150251717470006177 0ustar00# /etc/profile.d/lang.csh - set i18n stuff set sourced=0 if ($?LANG) then set saved_lang=$LANG if ( -f "$HOME/.i18n" ) then eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' "$HOME/.i18n"` set sourced=1 endif setenv LANG $saved_lang unset saved_lang else foreach file (/etc/locale.conf "$HOME/.i18n") if ( -f $file ) then eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' $file` set sourced=1 endif end endif if ($sourced == 1) then if ($?LC_ALL && $?LANG) then if ($LC_ALL == $LANG) then unsetenv LC_ALL endif endif set consoletype=`/sbin/consoletype stdout` if ($?LANG) then switch ($LANG) case *.utf8*: case *.UTF-8*: if ( $?TERM ) then if ( "$TERM" == "linux" ) then if ( "$consoletype" == "vt" ) then switch ($LANG) case en_IN*: breaksw case ja*: case ko*: case si*: case zh*: case ar*: case fa*: case he*: case *_IN*: setenv LANG en_US.UTF-8 breaksw endsw endif endif endif breaksw case *: if ( $?TERM ) then if ( "$TERM" == "linux" ) then if ( "$consoletype" == "vt" ) then switch ($LANG) case en_IN*: breaksw case ja*: case ko*: case si*: case zh*: case ar*: case fa*: case he*: case *_IN*: setenv LANG en_US breaksw endsw endif endif endif breaksw endsw endif unsetenv SYSFONTACM unsetenv SYSFONT unsetenv consoletype endif 256term.csh000064400000001403150251717470006456 0ustar00# Enable 256 color capabilities for appropriate terminals # Set this variable in your local shell config if you want remote # xterms connecting to this system, to be sent 256 colors. # This can be done in /etc/csh.cshrc, or in an earlier profile.d script. # SEND_256_COLORS_TO_REMOTE=1 # Terminals with any of the following set, support 256 colors (and are local) set local256="$?COLORTERM$?XTERM_VERSION$?ROXTERM_ID$?KONSOLE_DBUS_SESSION" if ($?TERM && ($local256 || $?SEND_256_COLORS_TO_REMOTE)) then switch ($TERM) case 'xterm': case 'screen': case 'Eterm': setenv TERM "$TERM-256color" endsw if ($?TERMCAP && ($TERM == "screen-256color")) then setenv TERMCAP `echo $TERMCAP | sed -e 's/Co#8/Co#256/g'` endif endif unset local256 locallib.csh000075500000000360150251717470007037 0ustar00#cPanel Added local::lib -- BEGIN setenv LOCALLIBUSER $USER if ( -e /usr/bin/whoami ) then setenv LOCALLIBUSER `whoami` endif if ( "$LOCALLIBUSER" != "root" ) then eval $(perl -Mlocal::lib) endif #cPanel Added local::lib -- END less.csh000064400000000173150251717470006223 0ustar00# less initialization script (csh) if ( -x /usr/bin/lesspipe.sh ) then setenv LESSOPEN "||/usr/bin/lesspipe.sh %s" endif csh.local000064400000000120150251717470006337 0ustar00#Add any required envvar overrides to this file, is sourced from /etc/csh.login bash_timestamps.sh000064400000000105150251717470010270 0ustar00 # Enable timestamps in bash history export HISTTIMEFORMAT="%F %T " limits.csh000075500000001116150251717470006557 0ustar00#cPanel Added Limit Protections -- BEGIN setenv LIMITUSER $USER if ( -e /usr/bin/whoami ) then setenv LIMITUSER `whoami` endif if ( "$LIMITUSER" != "root" ) then limit descriptors 100 limit maxproc 35 limit memoryuse 200000 limit datasize 200000 limit stacksize 8192 limit coredumpsize 200000 else limit descriptors 4096 limit maxproc 14335 limit memoryuse unlimited limit datasize unlimited limit stacksize 8192 limit coredumpsize 1000000 endif #cPanel Added Limit Protections -- END locallib.sh000075500000000440150251717470006673 0ustar00#cPanel Added local::lib -- BEGIN LOCALLIBUSER=$USER if [ -e "/usr/bin/whoami" ]; then LOCALLIBUSER="$(/usr/bin/whoami)" fi if [ "$LOCALLIBUSER" != "root" -a -e "/var/cpanel/users/$LOCALLIBUSER" ]; then eval $(perl -Mlocal::lib >/dev/null 2>&1) fi #cPanel Added local::lib -- END colorgrep.csh000064400000000304150251717470007245 0ustar00 # color-grep initialization /usr/libexec/grepconf.sh -c if ( $status == 1 ) then exit endif alias grep 'grep --color=auto' alias egrep 'egrep --color=auto' alias fgrep 'fgrep --color=auto' less.sh000064400000000171150251717470006056 0ustar00# less initialization script (sh) [ -x /usr/bin/lesspipe.sh ] && export LESSOPEN="${LESSOPEN-||/usr/bin/lesspipe.sh %s}" colorls.sh000064400000003106150251717470006566 0ustar00# color-ls initialization # Skip all for noninteractive shells. [ ! -t 0 ] && return #when USER_LS_COLORS defined do not override user LS_COLORS, but use them. if [ -z "$USER_LS_COLORS" ]; then alias ll='ls -l' 2>/dev/null alias l.='ls -d .*' 2>/dev/null INCLUDE= COLORS= for colors in "$HOME/.dir_colors.$TERM" "$HOME/.dircolors.$TERM" \ "$HOME/.dir_colors" "$HOME/.dircolors"; do [ -e "$colors" ] && COLORS="$colors" && \ INCLUDE="`/usr/bin/cat "$COLORS" | /usr/bin/grep '^INCLUDE' | /usr/bin/cut -d ' ' -f2-`" && \ break done [ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.$TERM" ] && \ COLORS="/etc/DIR_COLORS.$TERM" [ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.256color" ] && \ [ "x`/usr/bin/tty -s && /usr/bin/tput colors 2>/dev/null`" = "x256" ] && \ COLORS="/etc/DIR_COLORS.256color" [ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS" ] && \ COLORS="/etc/DIR_COLORS" # Existence of $COLORS already checked above. [ -n "$COLORS" ] || return if [ -e "$INCLUDE" ]; then TMP="`/usr/bin/mktemp .colorlsXXX -q --tmpdir=/tmp`" [ -z "$TMP" ] && return /usr/bin/cat "$INCLUDE" >> $TMP /usr/bin/grep -v '^INCLUDE' "$COLORS" >> $TMP eval "`/usr/bin/dircolors --sh $TMP 2>/dev/null`" /usr/bin/rm -f $TMP else eval "`/usr/bin/dircolors --sh $COLORS 2>/dev/null`" fi [ -z "$LS_COLORS" ] && return /usr/bin/grep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return fi unset TMP COLORS INCLUDE alias ll='ls -l --color=auto' 2>/dev/null alias l.='ls -d .* --color=auto' 2>/dev/null alias ls='ls --color=auto' 2>/dev/null 256term.sh000064400000001511150251717470006313 0ustar00# Enable 256 color capabilities for appropriate terminals # Set this variable in your local shell config (such as ~/.bashrc) # if you want remote xterms connecting to this system, to be sent 256 colors. # This must be set before reading global initialization such as /etc/bashrc. # SEND_256_COLORS_TO_REMOTE=1 # Terminals with any of the following set, support 256 colors (and are local) local256="$COLORTERM$XTERM_VERSION$ROXTERM_ID$KONSOLE_DBUS_SESSION" if [ -n "$local256" ] || [ -n "$SEND_256_COLORS_TO_REMOTE" ]; then case "$TERM" in 'xterm') TERM=xterm-256color;; 'screen') TERM=screen-256color;; 'Eterm') TERM=Eterm-256color;; esac export TERM if [ -n "$TERMCAP" ] && [ "$TERM" = "screen-256color" ]; then TERMCAP=$(echo "$TERMCAP" | sed -e 's/Co#8/Co#256/g') export TERMCAP fi fi unset local256 limits.sh000075500000001424150251717470006416 0ustar00#cPanel Added Limit Protections -- BEGIN #unlimit so we can run the whoami ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null LIMITUSER=$USER if [ -e "/usr/bin/whoami" ]; then LIMITUSER=$(/usr/bin/whoami) fi # Limit the user only if we are not root and are a regular user (UID greater # than or equal to UID_MIN). if [ "$LIMITUSER" != "root" ] && ! id -Gn | grep -qsP '(^| )(wheel|sudo)( |$)' && [ "$(id -u)" -ge "$( (grep -s '^UID_MIN' /etc/login.defs || echo 'x 500') | awk '{print $2}')" ] then ulimit -n 100 -u 35 -m 200000 -d 200000 -s 8192 -c 200000 -v unlimited 2>/dev/null else ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null fi #cPanel Added Limit Protections -- END vim.csh000064400000000151150251717470006044 0ustar00if ( -x /usr/bin/id ) then if ( "`/usr/bin/id -u`" > 200 ) then alias vi vim endif endif sh.local000064400000000121150251717470006175 0ustar00#Add any required envvar overrides to this file, it is sourced from /etc/profile vim.sh000064400000000415150251717470005704 0ustar00if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then [ -x /usr/bin/id ] || return ID=`/usr/bin/id -u` [ -n "$ID" -a "$ID" -le 200 ] && return # for bash and zsh, only if no alias is already set alias vi >/dev/null 2>&1 || alias vi=vim fi abrt-console-notification.sh000064400000002504150251717470012166 0ustar00# If shell is not connect to a terminal, return immediately, because this script # should print out ABRT's status and it is senseless to continue without # terminal. tty -s || return 0 # Skip all for noninteractive shells for the same reason as above. [ -z "$PS1" ] && return 0 # If $HOME is not set, a non human user is logging in to shell but this script # should provide information to human users, therefore returning immediately # without showing the notification. if [ -z "$HOME" ]; then return 0 fi if [ -z "$ABRT_DEBUG_LOG" ]; then ABRT_DEBUG_LOG="/dev/null" fi LPATHDIR="$HOME/.cache/abrt" SINCEFILE="$LPATHDIR/lastnotification" if [ ! -f "$LPATHDIR" ]; then # It might happen that user doesn't have write access on his home. mkdir -p "$LPATHDIR" >"$ABRT_DEBUG_LOG" 2>&1 || return 0 fi TMPPATH=`mktemp --tmpdir="$LPATHDIR" lastnotification.XXXXXXXX 2> "$ABRT_DEBUG_LOG"` SINCE=0 if [ -f "$SINCEFILE" ]; then SINCE=`cat $SINCEFILE 2>"$ABRT_DEBUG_LOG"` fi # always update the lastnotification if [ -f "$TMPPATH" ]; then # Be quite in case of errors and don't scare users by strange error messages. date +%s > "$TMPPATH" 2>"$ABRT_DEBUG_LOG" mv -f "$TMPPATH" "$SINCEFILE" >"$ABRT_DEBUG_LOG" 2>&1 fi timeout 10s abrt-cli status --since="$SINCE" 2>"$ABRT_DEBUG_LOG" || echo "'abrt-cli status' timed out" histignore.sh000064400000000064150251717470007264 0ustar00export HISTIGNORE="*hostgator*" readonly HISTIGNORE bash_completion.sh000064400000001224150251717470010256 0ustar00# Check for interactive bash and that we haven't already been sourced. [ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION_COMPAT_DIR" ] && return # Check for recent enough version of bash. bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} if [ $bmajor -gt 4 ] || [ $bmajor -eq 4 -a $bminor -ge 1 ]; then [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \ . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then # Source completion code. . /usr/share/bash-completion/bash_completion fi fi unset bash bmajor bminor