summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-03-05 12:59:36 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-03-05 12:59:36 (EST)
commitc6f56dabda82e91b8b65aca4d1a5aef6fcefd28b (patch)
tree66223febdf236ba1c0cedd2ee67d6808c2ce7f7f /.bashrc
parent3d66449c1841c6ac37bb54b8aa3cf9b9482ff07a (diff)
downloadbash-c6f56dabda82e91b8b65aca4d1a5aef6fcefd28b.zip
bash-c6f56dabda82e91b8b65aca4d1a5aef6fcefd28b.tar.gz
bash-c6f56dabda82e91b8b65aca4d1a5aef6fcefd28b.tar.bz2
Better organize things
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc30
1 files changed, 14 insertions, 16 deletions
diff --git a/.bashrc b/.bashrc
index 8c086b4..0384e59 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,38 +1,36 @@
+PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games'
+PATH="${HOME}/bin:${PATH}"
+
+# Interactive only beyond this point
[ -z "${PS1}" ] && return
+PATH="${HOME}/ibin:${PATH}"
+
+# Bash history
HISTSIZE=1000
HISTFILESIZE=1000
HISTCONTROL=ignoreboth
shopt -s histappend
-[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
-
+# Prompt
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
-
-# Set terminal window title.
+# 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'
+# Environment
+if [ -f ~/.bash_exports ]; then
+ . ~/.bash_exports
fi
+# Aliases and functions
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
+# Completions
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi