Commit e6d528b5 authored by François Magimel's avatar François Magimel
Browse files

Dotfiles / bash: add bashrc

parent d74fc706
#
# ~/.bashrc
#
#
# Functions
#
findg() {
ext=$1
name=$2
find . -name "*.${ext}" -exec grep --color -rnH $name {} \;
}
_copy() {
cat | xclip -selection clipboard
}
#
# Bash
#
# don't put duplicate lines in the history. See bash(1) for more options
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
#
# Imports
#
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
[[ -f ~/.bash_completion ]] && . ~/.bash_completion
[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases
[[ -f ~/.bash_aliases.local ]] && . ~/.bash_aliases.local
[[ -f ~/.bashrc.local ]] && . ~/.bashrc.local
#
# Exports
#
export LANG=fr_FR.utf8
export EDITOR=vim
export WORKON_HOME=$HOME/Documents/virtualenvs
source /usr/bin/virtualenvwrapper.sh # archlinux
#source /usr/share/virtualenvwrapper/virtualenvwrapper.sh # ubuntu
# export HTTP_PROXY="http://proxy.enseeiht.fr:3128/" # n7
# Prompt
PS1='\[\033[1;35m\][\u@\h \t \w]\$ \[\033[00m\]'
# Other
task
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment