Back to the main page

Shell profiles, mine and for root

The .bash_profile


export PATH="${PATH}:/home/zdudic/bin"

# colors
# Lots of other colors:  http://misc.flogisoft.com/bash/tip_colors_and_formatting
reset="\[\033[0m\]"
blue="\[\033[0;34m\]"
green="\[\033[0;32m\]"
purple="\[\033[0;35m\]"
red="\[\033[0;31m\]"
white="\[\033[0;37m\]"
yellow="\[\033[0;33m\]"
boldred="\[\033[1;91m\]"

# PS is shell variable
PS1="[\u@${yellow}\h${reset} \W]"

export https_proxy=http://your-proxy:80
export http_proxy=http://your-proxy:80
export no_proxy=localhost,127.0.0.1,.your-domain

# Ansible cfg file
export ANSIBLE_CONFIG=/home/zdudic/.ansible.cfg

# number of display columns
export COLUMNS=149

export HISTTIMEFORMAT="%d/%m/%y %T "

# Java home for SWR
export JAVA_HOME=/some-folder/latest

# show some info about host you are loggin in
echo ; echo
echo "################################################################"
echo -ne "* This is  " ; hostname
echo -ne "* Kernel Info: " ; uname -rs
#echo -ne "* Kernel Info: " ;uname -smr
echo -ne "* Bash ver: "; bash --version | head -1
echo -ne "* Uptime: "; uptime
echo -ne "* Server time: "; date
echo "* Local filesystems: " ; df -lPhT
echo "################################################################"
echo

root's .profile



# -------------
# sh profile
# -------------

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# colors
# Lots of other colors:  http://misc.flogisoft.com/bash/tip_colors_and_formatting
reset="\[\033[0m\]"
blue="\[\033[0;34m\]"
green="\[\033[0;32m\]"
purple="\[\033[0;35m\]"
red="\[\033[0;31m\]"
white="\[\033[0;37m\]"
yellow="\[\033[0;33m\]"
boldred="\[\033[1;91m\]"

# PS is shell variable
PS1="[\u@${boldred}\h${reset} \W]"

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
export https_proxy=http://your-proxy:80
export http_proxy=http://your-proxy:80
export no_proxy=localhost,127.0.0.1,.your-domain
Back to the main page