guest@dotshare [~/groups/shells/bash] $ ls prompt/ | cat

prompt (scrot, raw, dl)

smil3y Nov 19, 2012 (shells/bash)

SCROT

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ~/.bashrc

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

# [ -r /etc/bash.cgroups ] && . /etc/bash.cgroups

# Define color variables
Color_Off='\[\033[0m\]'         # Text Reset

# Regular Colors
Black='\[\033[0;30m\]'    # Black
Red='\[\033[0;31m\]'      # Red
Green='\[\033[0;32m\]'    # Green
Yellow='\[\033[0;33m\]'   # Yellow
Blue='\[\033[0;34m\]'     # Blue
Purple='\[\033[0;35m\]'   # Purple
Cyan='\[\033[0;36m\]'     # Cyan
White='\[\033[0;37m\]'    # White

# Bold
BBlack='\[\033[1;30m\]'   # Black
BRed='\[\033[1;31m\]'     # Red
BGreen='\[\033[1;32m\]'   # Green
BYellow='\[\033[1;33m\]'  # Yellow
BBlue='\[\033[1;34m\]'    # Blue
BPurple='\[\033[1;35m\]'  # Purple
BCyan='\[\033[1;36m\]'    # Cyan
BWhite='\[\033[1;37m\]'   # White


# Setup Bash prompt
shopt -s checkwinsize

if [ "$(id -u)" = "0" ]; then
	base_color="${BRed}"
else
	base_color="${BBlue}"
fi

PS1="${base_color}|=[${BWhite}\j${base_color}]==[${BWhite}\t${base_color}]===[${BWhite}\u${base_color}@${BWhite}\h${base_color}]====[${BWhite}\w${base_color}]${Color_Off}"
PS1="${PS1}\n${base_color}|=====${BWhite}>>${Color_Off} "


# Some aliases
alias ls='ls --color=auto'
alias dir='dir --color'
alias pacup='su -c "pacman -Syu"'
alias man='man -P most'

# And some variables
EDITOR="vim"
PATH="${PATH}:${HOME}/bin"

export PATH EDITOR

CLICK TO VIEW

x