Uname:Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64

Base Dir : /home/httpd/vhosts/comeonline.ch/httpdocs

User : onlineadmin


403WebShell
403Webshell
Server IP : 80.74.154.100  /  Your IP : 216.73.217.0
Web Server : Apache
System : Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64
User : onlineadmin ( 10487)
PHP Version : 8.5.7
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/httpd/vhosts/comeonline.ch/.OLD/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/vhosts/comeonline.ch/.OLD/.bashrc
# .bash_profile vs .bashrc
# http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html


# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
### Anything we want to be processed in a non-interactive shell
### (ie ssh user@host 'command-to-run')
### should be place here before the
### "If not run interactively, don't do anything" line below.


# Function to source files if they exist.
sourcefileifitexists() {
    if [ -f "$1" ]; then
        source "$1"
    fi
}
# Function to add directories to the $PATH. Checks if the exist and if they are already in the $PATH.
pathadd() {
    if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
        PATH="${PATH:+"$PATH:"}$1"
    fi
}
# Function to add directories to the front of the $PATH. Checks if they exist and if they are already in the $PATH.
pathaddfront() {
   if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
       PATH="$1:${PATH:+"$PATH"}"
   fi
}

### Set path to fallbackup Drush when the Drush Launcher does not find a site local Dush.
### We put these before the loading of .bash_aliases so we can have an alias to this drush.
### https://github.com/drush-ops/drush-launcher#fallback
# When the fallback Drush is installed with 'composer global require drush/drush:^8.' (Old Method)
#export DRUSH_LAUNCHER_FALLBACK="$HOME/.config/composer/vendor/bin/drush"

# When the fallback Drush is installed with 'cgr drush/drush:^8.0'
# https://github.com/consolidation/cgr
export DRUSH_LAUNCHER_FALLBACK="PATH=/opt/cpanel/ea-php56/root/usr/bin/php:$PATH DRUSH_PHP="/opt/cpanel/ea-php56/root/usr/bin/php"  
/opt/cpanel/ea-php56/root/usr/bin/php /home/meosch/.composer/global/drush/drush/vendor/drush/drush/drush"

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
sourcefileifitexists $HOME/.bash_aliases

# Change the umask from 002 to 022 so that group does not have write permissons by default.
# http://my.oakhosting.net/knowledgebase/90/Umask-Solving-problem-caused-for-PHP-by-group-writeable-files.html
umask 022

# Set the time zone for bash
export TZ=Europe/Zurich


# Export DRUSH_PHP fixes “fwrite(): supplied argument is not a valid stream resource” error
# http://drupal.stackexchange.com/questions/100091/fwrite-supplied-argument-is-not-a-valid-stream-resource

# Set the path to the PHP that Drush should use
#export DRUSH_PHP='/usr/local/bin/php'
# Cpanel PHP example PHP 7.1
#export DRUSH_PHP="/opt/cpanel/ea-php71/root/usr/bin/php"


# Set the location of drush.ini php.ini file overrides file.
export DRUSH_INI="$HOME/.drush/drush.ini"

# Set the location of the full php.ini that drush should used.
export PHP_INI="$HOME/.config/php/php.ini"

  # Add WebEnabled binaries path
  pathaddfront "/opt/webenabled/bin/.path"
fi

# Set default editor to nano so we do not get vi when editing messages for git.
export EDITOR=/bin/nano

# Add Drush and other composer binaries to path if the folder exists
pathaddfront "$HOME/.composer/vendor/bin"
# New path for Composer bin files leaving above line for backwards compatibility
pathaddfront "$HOME/.config/composer/vendor/bin"

# Add users bin directory to the front of the line. Keep this as the last "pathaddfront".
pathaddfront "$HOME/bin"



# ********** If not running interactively, don't do anything more! ***********


[ -z "$PS1" ] && return

export GIT_PS1_SHOWDIRTYSTATE=yes
export GIT_PS1_SHOWSTASHSTATE=yes
export GIT_PS1_SHOWUNTRACKEDFILES=yes
export GIT_PS1_SHOWUPSTREAM="auto"
export GIT_PS1_SHOWCOLORHINTS=true

# Git completion for bash
if [ -f $HOME/bin/git-completion.bash ] ; then
        source $HOME/bin/git-completion.bash
    fi

# don't put lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# Load the git-prompt script so we can see what branch we are on.
source ~/bin/.git-prompt.sh

# Set environment variables for z
export _Z_NO_RESOLVE_SYMLINKS=true
export _Z_DATA=$HOME/.config/z/.z-data

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color) color_prompt=yes;;
esac

function parse_git_branch(){
    git_dir=$(git rev-parse --git-dir 2>/dev/null)
    if [ -n "$git_dir" ]; then
      fish_git_dirty_color='\e[0;31m' # Red
      fish_git_not_dirty_color='\e[0;32m' # Green
      gitbranch=$(git branch 2>/dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\1/')
      git_diff=$(git diff 2>/dev/null)
        if [ -z "$git_diff" ]; then
          printf "$fish_git_not_dirty_color"
        else
          printf "$fish_git_dirty_color"
        fi
    fi
}

# Add some neat bash completion to drush commands
  if command -v drush >/dev/null ; then
    if [ -f ~/.drush.bashrc ] ; then
        . ~/.drush.bashrc
    fi
    if [ -f ~/.drush/drush.complete.sh ] ; then
        . ~/.drush/drush.complete.sh
    fi
  fi

set_bash_prompt(){
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes

# Check for hostpoint.ch as the tput test below returns false on their servers, but they support a color propmt.
fullhostname=$(hostname -f)
if [[ $fullhostname = *"hostpoint.ch"* ]]; then
  color_prompt=yes
else
  if [ -n "$force_color_prompt" ]; then
      if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
	    # We have color support; assume it's compliant with Ecma-48
	    # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
	    # a case would tend to support setf rather than setaf.)
	    color_prompt=yes
     else
	   color_prompt=
     fi
  fi
fi
if [ -n "${VIRTUAL_HOST}" ]; then
  virtualhostmarker=" "
else
  virtualhost=""
fi

if [ "$color_prompt" = yes ]; then
#    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#PS1='[\[\033[01;33m\]\d \[\033[01;37m\]\t \[\033[01;36m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]]$(parse_git_branch)$(__git_ps1) \[\033[00m\]$ '

if command -v drush >/dev/null && [ -f ~/.drush/drush.complete.sh ] ; then
PS1='[\[\033[01;33m\]\d \[\033[01;37m\]\t \[\033[01;36m\]\u@\h\[\033[00m\]\[\033[01;37m\]${virtualhostmarker}\[\033[00;37m\]\[\033[04;34m\]${VIRTUAL_HOST}\[\033[00;34m\]\[\033[01;34m\]:\w\[\033[00m\]\[\033[1;35m\]$(__git_ps1)\[\033[1;30m\]$(__drush_ps1)\[\033[00m\]]$ '
else
PS1='[\[\033[01;33m\]\d \[\033[01;37m\]\t \[\033[01;36m\]\u@\h\[\033[00m\]\[\033[01;37m\]${virtualhostmarker}\[\033[00;37m\]\[\033[04;34m\]${VIRTUAL_HOST}\[\033[00;34m\]\[\033[01;34m\]:\w\[\033[00m\]\[\033[1;35m\]$(__git_ps1)\[\033[00m\]]$ '
fi

else
#    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    PS1="[\d \t \u@\h \${VIRTUAL_HOST}:\w] $(__git_ps1) $(__drush_ps1) ] $ "
fi
# How to change Gnome-Terminal title? http://askubuntu.com/a/22417
if [  $TERM = xterm ]; then
echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~} ${VIRTUAL_HOST}\007"
fi
}
PROMPT_COMMAND=set_bash_prompt
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# Enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
    sourcefileifitexists /etc/bash_completion
fi
# Disabled for servers for more info on rbenv see: https://github.com/sstephenson/rbenv
#eval "$(rbenv init -)"

# Part of keyboard/terminal bell fix
[ "$DISPLAY" ] && xset b 50

# Add some neat bash completion to drush commands
  if command -v drush >/dev/null ; then
    sourcefileifitexists $HOME/.drush.bashrc
  fi
# Add completion for the Github git wrapper hub
if [ -f $HOME/bin/hub.bash_completion ]; then
    . $HOME/bin/.hub.bash_completion.sh
fi

Youez - 2016 - github.com/yon3zu
LinuXploit