1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

.bashrc additions from ravna (work laptop)

This commit is contained in:
Michiel Scholten
2014-05-14 10:07:49 +02:00
parent 36cbce93e2
commit a19c1ff5aa

14
.bashrc
View File

@@ -5,9 +5,9 @@
# If not running interactively, don't do anything # If not running interactively, don't do anything
[ -z "$PS1" ] && return [ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options # don't put duplicate lines or lines starting with space in the history.
# ... or force ignoredups and ignorespace # See bash(1) for more options
HISTCONTROL=ignoredups:ignorespace HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it # append to the history file, don't overwrite it
shopt -s histappend shopt -s histappend
@@ -20,6 +20,10 @@ HISTFILESIZE=2000
# update the values of LINES and COLUMNS. # update the values of LINES and COLUMNS.
shopt -s checkwinsize shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1) # make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
@@ -36,7 +40,7 @@ esac
# uncomment for a colored prompt, if the terminal has the capability; turned # uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window # off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt # should be on the output of commands, not on the prompt
force_color_prompt=yes #force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
@@ -51,11 +55,13 @@ fi
if [ "$color_prompt" = yes ]; then if [ "$color_prompt" = yes ]; then
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# Michiel's colour config
BLACK="\[\033[0m\]" BLACK="\[\033[0m\]"
BLUE="\[\033[0;34m\]" BLUE="\[\033[0;34m\]"
YELLOW="\[\033[0;33m\]" YELLOW="\[\033[0;33m\]"
PROMPT_SYMBOL='$' PROMPT_SYMBOL='$'
PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ " PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ "
# /Michiel's colour config
else else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi fi