bullseyed bashrc
This commit is contained in:
parent
e367907cea
commit
6aa5e2f8ad
|
@ -2,40 +2,27 @@
|
|||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
export DEBEMAIL="tnoel@entrouvert.com"
|
||||
export DEBFULLNAME="Thomas NOEL"
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
cat ~/TODO 2> /dev/null || /bin/true
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL="erasedups:ignoreboth"
|
||||
# Don't record some commands
|
||||
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
|
||||
# Useful timestamp format
|
||||
HISTTIMEFORMAT='%F %T '
|
||||
# Record each line as it gets issued
|
||||
PROMPT_COMMAND='history -a'
|
||||
# Avoid duplicate entries
|
||||
# Append to the history file, don't overwrite it
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
# Save multi-line commands as one command
|
||||
shopt -s cmdhist
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=500000
|
||||
HISTFILESIZE=100000
|
||||
HISTSIZE=10000
|
||||
HISTFILESIZE=20000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
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
|
||||
|
@ -50,7 +37,7 @@ fi
|
|||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color) color_prompt=yes;;
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
|
@ -60,12 +47,12 @@ esac
|
|||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -97,6 +84,9 @@ if [ -x /usr/bin/dircolors ]; then
|
|||
#alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# some more ls aliases
|
||||
#alias ll='ls -l'
|
||||
#alias la='ls -A'
|
||||
|
@ -121,6 +111,28 @@ if ! shopt -oq posix; then
|
|||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
export DEBEMAIL="tnoel@entrouvert.com"
|
||||
export DEBFULLNAME="Thomas NOEL"
|
||||
|
||||
cat ~/TODO 2> /dev/null || /bin/true
|
||||
|
||||
HISTCONTROL="erasedups:ignoreboth"
|
||||
# Don't record some commands
|
||||
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
|
||||
# Useful timestamp format
|
||||
HISTTIMEFORMAT='%F %T '
|
||||
# Record each line as it gets issued
|
||||
PROMPT_COMMAND='history -a'
|
||||
# Avoid duplicate entries
|
||||
# Append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
# Save multi-line commands as one command
|
||||
shopt -s cmdhist
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=500000
|
||||
HISTFILESIZE=100000
|
||||
|
||||
complete -F _known_hosts eotoctoc
|
||||
. /usr/share/bash-completion/completions/aptitude
|
||||
complete -F _aptitude apt
|
||||
|
@ -135,7 +147,6 @@ PROMPT_DIRTRIM=2
|
|||
# Prevent file overwrite on stdout redirection
|
||||
set -o noclobber
|
||||
|
||||
|
||||
## SMARTER TAB-COMPLETION (Readline bindings) ##
|
||||
|
||||
# Perform file completion in a case insensitive fashion
|
||||
|
@ -145,7 +156,6 @@ bind "set completion-ignore-case on"
|
|||
# Display matches for ambiguous patterns at first tab press
|
||||
bind "set show-all-if-ambiguous on"
|
||||
|
||||
|
||||
## BETTER DIRECTORY NAVIGATION ##
|
||||
|
||||
# Prepend cd to directory names automatically
|
||||
|
@ -158,5 +168,4 @@ bind "set show-all-if-ambiguous on"
|
|||
# This defines where cd looks for targets
|
||||
# Add the directories you want to have fast access to, separated by colon
|
||||
# Ex: CDPATH=".:~:~/projects" will look for targets in the current working directory, in home and in the ~/projects folder
|
||||
CDPATH=".:~/dev/publik/src/"
|
||||
|
||||
CDPATH=".:~/src/"
|
||||
|
|
Reference in New Issue