From 3d66449c1841c6ac37bb54b8aa3cf9b9482ff07a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 05 Mar 2016 12:40:08 -0500 Subject: .bashrc: New file --- diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..8c086b4 --- /dev/null +++ b/.bashrc @@ -0,0 +1,38 @@ +[ -z "${PS1}" ] && return + +HISTSIZE=1000 +HISTFILESIZE=1000 +HISTCONTROL=ignoreboth +shopt -s histappend + +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + +# Set terminal window title. +case "${TERM}" in xterm*|rxvt*) + PS1="\[\e]0;\u@\h:\w\a\]${PS1}" + ;; +esac + +export LC_ALL='en_US.UTF-8' +export LC_TIME='en_DK.UTF-8' +export EDITOR='vim' + +if [ -x /usr/bin/dircolors ]; then + if [ -r ~/.dircolors ]; then + eval "$(dircolors -b ~/.dircolors)" + else + eval "$(dircolors -b)" + fi + alias ls='ls --color=auto' + alias grep='grep --color=auto' +fi + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +if [ -f /etc/bash_completion ]; then + . /etc/bash_completion +fi diff --git a/.gitignore.d/bash b/.gitignore.d/bash index 1185e2c..14d0be9 100755 --- a/.gitignore.d/bash +++ b/.gitignore.d/bash @@ -2,6 +2,7 @@ * # Include relevant files +!/.bashrc !/.bash_aliases !/ibin/ !/ibin/* -- cgit v0.9.1