PATH:
etc
/
profile.d
################################################################################### # 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}" == root ] 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
[-] colorxzgrep.csh
[edit]
[-] vim.csh
[edit]
[-] which2.sh
[edit]
[-] modules.sh
[edit]
[-] modules.csh
[edit]
[-] colorsysstat.csh
[edit]
[-] puppet-agent.csh
[edit]
[-] bash_timestamps.sh
[edit]
[-] less.sh
[edit]
[-] less.csh
[edit]
[-] sh.local
[edit]
[-] vim.sh
[edit]
[-] colorgrep.sh
[edit]
[-] scl-init.sh
[edit]
[-] gawk.sh
[edit]
[-] colorgrep.csh
[edit]
[-] colorxzgrep.sh
[edit]
[-] colorzgrep.csh
[edit]
[-] colorls.csh
[edit]
[-] cpanel-user-commands.sh
[edit]
[-] gawk.csh
[edit]
[-] prompt.sh
[edit]
[-] mc.csh
[edit]
[-] scl-init.csh
[edit]
[-] locallib.sh
[edit]
[-] csh.local
[edit]
[-] which2.csh
[edit]
[-] debuginfod.csh
[edit]
[+]
..
[-] colorsysstat.sh
[edit]
[-] locallib.csh
[edit]
[-] mc.sh
[edit]
[-] debuginfod.sh
[edit]
[-] colorzgrep.sh
[edit]
[-] puppet-agent.sh
[edit]
[-] lang.sh
[edit]
[-] lang.csh
[edit]
[-] colorls.sh
[edit]