Anons79 Mini Shell

Directory : /etc/profile.d/
Upload File :
Current File : //etc/profile.d/prompt.sh

if [ "$PS1" ]; then
  if [ "${USER}" == root ]
  then
    if [[ "${TERM}" == xterm*  ]] || [ "${TERM}" == screen ]
    then
      echo -ne "\033]0;${USER}@${HOSTNAME%%.*}"; echo -ne "\007"
    fi
      export PROMPT_COMMAND='history -a >( tee -a  ~/.bash_history |logger -p local4.alert -t "$SSHD_USER:[$USER]:[$SSH_TTY]:[$PWD]" )'
  fi
fi

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]