alin_tamvanz

figlet

Feb 29th, 2016
256
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # System-wide .bashrc file for interactive bash(1) shells.
  2.  
  3. # To enable the settings / commands in this file for login shells as well,
  4. # this file has to be sourced in /etc/profile.
  5.  
  6. # If not running interactively, don't do anything
  7. [ -z "$PS1" ] && return
  8.  
  9. # check the window size after each command and, if necessary,
  10. # update the values of LINES and COLUMNS.
  11. shopt -s checkwinsize
  12.  
  13. # set variable identifying the chroot you work in (used in the prompt below)
  14. if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
  15.     debian_chroot=$(cat /etc/debian_chroot)
  16. fi
  17.  
  18. # set a fancy prompt (non-color, overwrite the one in /etc/profile)
  19. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  20.  
  21. # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
  22. # If this is an xterm set the title to user@host:dir
  23. #case "$TERM" in
  24. #xterm*|rxvt*)
  25. #    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
  26. #    ;;
  27. #*)
  28. #    ;;
  29. #esac
  30.  
  31. # enable bash completion in interactive shells
  32. #if ! shopt -oq posix; then
  33. #  if [ -f /usr/share/bash-completion/bash_completion ]; then
  34. #    . /usr/share/bash-completion/bash_completion
  35. #  elif [ -f /etc/bash_completion ]; then
  36. #    . /etc/bash_completion
  37. #  fi
  38. #fi
  39.  
  40. # if the command-not-found package is installed, use it
  41. if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
  42.     function command_not_found_handle {
  43.             # check because c-n-f could've been removed in the meantime
  44.                 if [ -x /usr/lib/command-not-found ]; then
  45.            /usr/bin/python /usr/lib/command-not-found -- "$1"
  46.                    return $?
  47.                 elif [ -x /usr/share/command-not-found/command-not-found ]; then
  48.            /usr/bin/python /usr/share/command-not-found/command-not-found -- "$1"
  49.                    return $?
  50.         else
  51.            printf "%s:perintah tidak di temukan -_-\n" "$1" >&2
  52.            return 127
  53.         fi
  54.     }
  55. fi
  56.  
  57. blue='\e[1;34m'
  58. green='\e[0;32m'
  59. purple='\e[1;35m'
  60. cyan='\e[1;36m'
  61. red='\e[1;31m'
  62.  
  63.  
  64. echo -e $red "=================================================================== "
  65. echo -ne "${blue}Hari ini:\t\t${cyan}" `date`; echo ""
  66. echo -e "${blue}informasi: \t${cyan}" `uname -smr`
  67. echo -e "${blue}siapa Aku : \t${cyan}" `whoami`
  68. echo  -e $red "=================================================================== "
  69. echo -e "${blue}"
  70. figlet -f slant "#~shutdown57"
  71. export PS1="\[\033[1;32m\]\u\[\033[1;32m\]@\[\033[1;32m\]\h\[\033[1;32m\]:\[\033[1;32m\]\w \[\033[1;32m\]\\$ \[\033[0m\]";
RAW Paste Data