X7ROOT File Manager
Current Path:
/etc/profile.d
etc
/
profile.d
/
??
..
??
bash_timestamps.sh
(69 B)
??
colorgrep.csh
(196 B)
??
colorgrep.sh
(201 B)
??
colorls.csh
(1.7 KB)
??
colorls.sh
(1.57 KB)
??
colorsysstat.csh
(69 B)
??
colorsysstat.sh
(56 B)
??
colorxzgrep.csh
(162 B)
??
colorxzgrep.sh
(183 B)
??
colorzgrep.csh
(216 B)
??
colorzgrep.sh
(220 B)
??
cpanel-php-composer.sh
(548 B)
??
cpanel-user-commands.sh
(513 B)
??
csh.local
(80 B)
??
debuginfod.csh
(674 B)
??
debuginfod.sh
(596 B)
??
gawk.csh
(1.08 KB)
??
gawk.sh
(757 B)
??
lang.csh
(2.43 KB)
??
lang.sh
(2.26 KB)
??
less.csh
(500 B)
??
less.sh
(253 B)
??
locallib.csh
(240 B)
??
locallib.sh
(288 B)
??
mc.csh
(49 B)
??
mc.sh
(153 B)
??
modules.csh
(105 B)
??
modules.sh
(448 B)
??
prompt.sh
(2.16 KB)
??
puppet-agent.csh
(91 B)
??
puppet-agent.sh
(373 B)
??
scl-init.csh
(284 B)
??
scl-init.sh
(637 B)
??
sh.local
(81 B)
??
vim.csh
(106 B)
??
vim.sh
(248 B)
??
which2.csh
(120 B)
??
which2.sh
(628 B)
Editing: prompt.sh
################################################################################### # A T T E N T I O N ! # # This file is under puppet control! Do NOT make changes manually! # ################################################################################### if [ "$PS1" ]; then if [[ "${USER}" =~ hc_.+\. ]] || [ "${USER}" == wh ] || [ "${USER}" == la2 ] || [ "${USER}" == netops ] || [ "${USER}" == dcops ] || [ "${USER}" == phantoms ] || [ "${USER}" == devils ] || [ "${USER}" == root ] || [ "${USER}" == techsup ] || [ "${USER}" == emailcs ] then if [[ "${TERM}" == xterm* ]] || [ "${TERM}" == screen ] then echo -ne "\033]0;${USER}@${HOSTNAME%%.*}"; echo -ne "\007" fi #for logins via ipmi/idrac console or VNC tty=$(tty) if [[ ${tty} =~ 'tty' ]]; then export SSH_TTY=$tty export SSHD_USER=$USER fi if [ -z "${SSHD_USER}" ]; then SSHD_USER=$(cat /proc/$PPID/environ 2>/dev/null| tr '\0' '\n' | grep '^SSHD_USER' | cut -d"=" -f2) #set SSHD_USER for Namecheap if [ -n "${SSHD_USER}" ]; then export SSHD_USER #set SSHD_USER for Spaceship else SSHD_USER=$(ps -o user= -p $$) pid="$$" while [ "${SSHD_USER}" == 'root' ] do ppid=$(cat /proc/$pid/status | grep "PPid" | awk '{print $2}') pid=$ppid SSHD_USER=$(ps -o user= -p "${ppid}") export SSHD_USER done fi fi #set SSH_TTY for both - Namecheap and Spaceship pid="$$" while [ -z "${SSH_TTY}" ] do ppid=$(cat /proc/$pid/status | grep "PPid" | awk '{print $2}') pid=$ppid export SSH_TTY=$(tr '\0' '\n' < /proc/"${ppid}"/environ | grep '^SSH_TTY' | cut -d'=' -f2) done export PROMPT_COMMAND='history -a >(tee -a ~/.bash_history |logger -p local4.alert -t "$SSHD_USER:[$USER]:[$SSH_TTY]:[$PWD]")' elif [[ -d /dev/fd && -d /var/.cagefs ]] then unset HISTTIMEFORMAT export PROMPT_COMMAND='history -a >(tee -a ~/.bash_history |logger -p local5.alert -t "${USER}:${PWD}")' fi fi
Upload File
Create Folder