summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-03-05 12:40:08 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-03-05 12:40:08 (EST)
commit3d66449c1841c6ac37bb54b8aa3cf9b9482ff07a (patch)
tree0cd4565a3c90ce17edb58e1727991128e6e96473
parentc583c5817e468befbf64e5f913d66023e02e9147 (diff)
downloadbash-3d66449c1841c6ac37bb54b8aa3cf9b9482ff07a.zip
bash-3d66449c1841c6ac37bb54b8aa3cf9b9482ff07a.tar.gz
bash-3d66449c1841c6ac37bb54b8aa3cf9b9482ff07a.tar.bz2
.bashrc: New file
-rw-r--r--.bashrc38
-rwxr-xr-x.gitignore.d/bash1
2 files changed, 39 insertions, 0 deletions
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/*