Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Welcome Message
- # Arch Linux Logo Welcome Message
- c1="$(tput sgr0)$(tput setaf 4)"
- c2="$(tput bold)$(tput setaf 4)"
- c3="$(tput bold)$(tput setaf 7)"
- echo " $c2,$c1 _ _ _"
- echo " $c2/$c1#$c2\\$c1 __ _ _ __ ___| |__ | (_)_ __ _ ___ __"
- echo " $c2/$c1###$c2\\$c1 / _\` | '__/ __| '_ \\| | | '_ \\| | | \\ \\/ /"
- echo " $c2/$c1#####$c2\\$c1 | (_| | | | (__| | | | | | | | | |_| |> <"
- echo " $c2/$c1##,-,##$c2\\$c1 \\__,_|_| \\___|_| |_|_|_|_| |_|\\__,_/_/\\_\\"
- echo " $c2/$c1##( )##$c2\\$c1"
- echo " $c2/$c1#.-- --.#$c2\\ $c3 A simple, elegant GNU/Linux distribution."
- echo " $c2/$c1\` \`$c2\\$(tput sgr0)"$'\n'
- # Show date
- DATE="$(tput setaf 1)[$(tput setaf 6)$(date)"
- DATE="${DATE}$(tput setaf 1)]"
- echo $DATE
- # Show kernel info
- KERNEL="$(tput setaf 1)[$(tput setaf 6)$(uname -srmn)"
- KERNEL="${KERNEL}$(tput setaf 1)]"
- echo "$KERNEL"$'\n'
- # Reset colors
- tput sgr0
- # sanitize TERM:
- safe_term=${TERM//[^[:alnum:]]/?}
- match_lhs=""
- [[ -z ${match_lhs} ]] \
- && type dircolors >/dev/null \
- && match_lhs=$(dircolors --print-database)
- if [[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] ; then
- # we have colors <img src="http://obihoernchen.net/wordpress/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley">
- # Enable colors for ls, etc. Prefer ~/.dir_colors
- if type dircolors >/dev/null ; then
- if [[ -f ~/.dir_colors ]] ; then
- eval $(dircolors -b ~/.dir_colors)
- elif [[ -f /etc/DIR_COLORS ]] ; then
- eval $(dircolors -b /etc/DIR_COLORS)
- fi
- fi
- # -- CUSTOM PS1 String START --
- #PS1="\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; else echo '\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; fi)\[\033[0;37m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200\076 \[\033[0m\]"
- # --- Custom PS1 String END ---
- # Use this other PS1 string if you want \W for root and \w for all other users:
- # PS1="$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h\[\033[01;34m\] \W'; else echo '\[\033[01;32m\]\u@\h\[\033[01;34m\] \w'; fi) \$([[ \$? != 0 ]] && echo \"\[\033[01;31m\]:(\[\033[01;34m\] \")\$\[\033[00m\] "
- alias ls="ls --color=auto"
- alias dir="dir --color=auto"
- alias grep="grep --colour=auto"
- else
- # show root@ when we do not have colors
- PS1="\u@\h \w \$([[ \$? != 0 ]] && echo \":( \")\$ "
- # Use this other PS1 string if you want \W for root and \w for all other users:
- # PS1="\u@\h $(if [[ ${EUID} == 0 ]]; then echo '\W'; else echo '\w'; fi) \$([[ \$? != 0 ]] && echo \":( \")\$ "
- fi
- PS2="> "
- PS3="> "
- PS4="+ "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement