INNER CODE UNIT · Shell

PATH

magenx/Magento-2-server-installation · magenx.install.latest.sh:2123

PATH=\$PATH:\$HOME/bin
export PATH
END

_space 1
YELLOWTXT "[-] Creating bashrc"
tee .bashrc <<END
# .bashrc
# history timestamp
export HISTTIMEFORMAT="%d/%m/%y %T "
# got to app root folder
cd ~/${CURRENT_SYMLINK}/
# change prompt color
PS1='\[\e[37m\][\[\e[m\]\[\e[32m\]\u\[\e[m\]\[\e[37m\]@\[\e[m\]\[\e[35m\]\h\[\e[m\]\[\e[37m\]:\[\e[m\]\[\e[36m\]\W\[\e[m\]\[\e[37m\]]\[\e[m\]$ '
END

touch ${GET_[root_path]}/.bash_history
chmod 600 ${GET_[root_path]}/{.bashrc,.bash_profile,.bash_history}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…