Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Chris's ~/.bashrc
- # Define a few Colours
- BLACK='\e[0;30m'
- BLUE='\e[0;34m'
- GREEN='\e[0;32m'
- CYAN='\e[0;36m'
- RED='\e[0;31m'
- PURPLE='\e[0;35m'
- BROWN='\e[0;33m'
- LIGHTGRAY='\e[0;37m'
- DARKGRAY='\e[1;30m'
- LIGHTBLUE='\e[1;34m'
- LIGHTGREEN='\e[1;32m'
- LIGHTCYAN='\e[1;36m'
- LIGHTRED='\e[1;31m'
- LIGHTPURPLE='\e[1;35m'
- YELLOW='\e[1;33m'
- WHITE='\e[1;37m'
- NC='\e[0m' # No Color
- ## Some Basics
- export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
- export HISTCONTROL=ignoreboth
- 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)"
- ## Setup Prompt
- PS1="${BLUE}(${RED}\W${BLUE}) ${NORMAL}\h ${RED}\$ ${NC}"
- # 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
- # Aliases
- alias ls='ls --color=auto'
- alias ll='ls -l --color=auto'
- alias la='ls -A --color=auto'
- alias l='ls -CF --color=auto'
- alias ..='cd ..'
- alias gerp='grep --color=auto'
- alias del='rm --target-directory=$HOME/.Trash/'
- # Bash Completion
- if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- # Functions
- extract () {
- if [ -f $1 ] ; then
- case $1 in
- *.tar.bz2) tar xjf $1 ;;
- *.tar.gz) tar xzf $1 ;;
- *.bz2) bunzip2 $1 ;;
- *.rar) rar x $1 ;;
- *.gz) gunzip $1 ;;
- *.tar) tar xf $1 ;;
- *.tbz2) tar xjf $1 ;;
- *.tgz) tar xzf $1 ;;
- *.zip) unzip $1 ;;
- *.Z) uncompress $1 ;;
- *) echo "'$1' cannot be extracted via extract()" ;;
- esac
- else
- echo "'$1' is not a valid file"
- fi
- }
- # WELCOME SCREEN
- ################################################## #####
- clear
- echo -ne "${LIGHTBLUE}" "Hello, $USER. Today is, "; date
- echo -e "${BLACK}"; cal -3;
- #echo -ne "${CYAN}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement