Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CrunchBang(CB) Bash Script
- # Some of the scripts here were pulled from
- # http://tldp.org/LDP/abs/html/sample-bashrc.html
- #---------------------------------------------#
- # [ !! -Important- !! ] #
- #---------------------------------------------#
- # !!! BE SURE TO APPEND THIS TO ./bashrc !!!!
- #
- # if [ -f ~/.bashrc ]; then
- # source ~/.CBBash
- # fi
- #
- # YOU WILL ALSO NEED TO CREATE './CBBash' './CBAlias' './CBFunctions'
- # IN /Home/User/
- #---------------------------------------------#
- # [ Start ] #
- #---------------------------------------------#
- # Source global definitions
- if [ -f /etc/bashrc ]; then
- . /etc/bashrc
- fi
- export HISTCONTROL=ignoreboth
- export EDITOR="geany"
- export VISUAL="geany"
- shopt -s histappend
- shopt -s checkwinsize
- # Make less more friendly for non-text input files, see lesspipe(1)
- [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
- # Set variable identifying the chroot you work in (used in the prompt below)
- if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
- debian_chroot=$(cat /etc/debian_chroot)
- fi
- #---------------------------------------------#
- # [ Prompt ] #
- #---------------------------------------------#
- # If not running interactively, don't do anything
- [ -z "$PS1" ] && return
- force_color_prompt=yes
- PROMPT_COLOR='35;1m'
- # If this is an xterm set the title to user@host:dir
- case "$TERM" in
- xterm*|rxvt*)
- PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
- ;;
- *)
- ;;
- esac
- # enable programmable completion features (you don't need to enable
- # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
- # sources /etc/bash.bashrc).
- if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- #---------------------------------------------#
- # [ Shell Options ] #
- #---------------------------------------------#
- set -o noclobber
- # Color definitions (taken from Color Bash Prompt HowTo).
- # Some colors might look different of some terminals.
- #---------------------------------------------#
- # [ Normal Colours ] #
- #---------------------------------------------#
- Black='\e[0;30m' # Black
- Red='\e[0;31m' # Red
- Green='\e[0;32m' # Green
- Yellow='\e[0;33m' # Yellow
- Blue='\e[0;34m' # Blue
- Purple='\e[0;35m' # Purple
- Cyan='\e[0;36m' # Cyan
- White='\e[0;37m' # White
- #---------------------------------------------#
- # [ Bold Colours ] #
- #---------------------------------------------#
- BBlack='\e[1;30m' # Black
- BRed='\e[1;31m' # Red
- BGreen='\e[1;32m' # Green
- BYellow='\e[1;33m' # Yellow
- BBlue='\e[1;34m' # Blue
- BPurple='\e[1;35m' # Purple
- BCyan='\e[1;36m' # Cyan
- BWhite='\e[1;37m' # White
- #---------------------------------------------#
- # [ Background Colours ] #
- #---------------------------------------------#
- On_Black='\e[40m' # Black
- On_Red='\e[41m' # Red
- On_Green='\e[42m' # Green
- On_Yellow='\e[43m' # Yellow
- On_Blue='\e[44m' # Blue
- On_Purple='\e[45m' # Purple
- On_Cyan='\e[46m' # Cyan
- On_White='\e[47m' # White
- NC="\e[m" # Color Reset
- export IRCNAME="pwnsauce_"
- export PS1="${Red}[${Yellow}*${Red}]${Yellow}\u${Black}@${Yellow}\h"
- export PATH="$PATH:~/bin:~/scripts"
- #---------------------------------------------#
- # [ Visuals ] #
- #---------------------------------------------#
- clear
- echo -e "
- ${Black}/${Red}## ${Black}/${Red}## ${Black}/${Red}##
- ${Black}/ ${Red}##${Black}/ ${Red}## ${Black}! ${Red}##
- ${Black}/${Red}########## ${Black}! ${Red}##
- ${Black}! ${Red}## ##${Black}_/ ! ${Red}## ${Red}[${Black}*${Red}] ${Black}CrunchBang(${Red}CB${Black})${Black} Bash Script ${Red}[${Black}*${Red}]${NC}
- ${Black}/${Red}########## ${Black}!__/
- ${Black}!_ ${Red}## ##${Black}_/
- ${Black}! ${Red}##${Black}! ${Red}## ${Black}/${Red}##
- ${Black}!__/!__/ !__/${NC}"
- echo -e ""
- echo -e ""
- #---------------------------------------------#
- # [ Aliases ] #
- #---------------------------------------------#
- if [ -f ~/.CBBash ]; then
- source ~/.CBAlias
- fi
- #---------------------------------------------#
- # [ Functions ] #
- #---------------------------------------------#
- if [ -f ~/.CBBash ]; then
- source ~/.CBFunctions
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement