From c6f56dabda82e91b8b65aca4d1a5aef6fcefd28b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 05 Mar 2016 12:59:36 -0500 Subject: Better organize things --- (limited to '.bashrc') 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 -- cgit v0.9.1