/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin BASH_ENV=$HOME/.bashrc USERNAME="" # Custom colors BLACK="\[\033[0;30m\]" BLACK_B="\[\033[1;30m\]" RED="\[\033[0;31m\]" RED_B="\[\033[1;31m\]" GREEN="\[\033[0;32m\]" GREEN_B="\[\033[1;32m\]" YELLOW="\[\033[0;33m\]" YELLOW_B="\[\033[1;33m\]" BLUE="\[\033[0;34m\]" BLUE_B="\[\033[1;34m\]" PURPLE="\[\033[0;35m\]" PURPLE_B="\[\033[1;35m\]" CYAN="\[\033[0;36m\]" CYAN_B="\[\033[1;36m\]" WHITE="\[\033[0;37m\]" WHITE_B="\[\033[1;37m\]" CLEAR="\[\033[0m\]" # Custom prompt if [ "0$BASH_VERSINFO" -ge 2 ]; then PS1="${WHITE_B}[${YELLOW}\u${CLEAR}@${GREEN}\h${YELLOW}:${CLEAR}\w${WHITE_B}]${GREEN}\$${CLEAR} " fi export USERNAME BASH_ENV PATH