aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-06-19 22:46:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-06-19 22:46:07 +1200
commit3d2cd251f6d0b92567ad4d93d2ec54bfea856634 (patch)
tree20c933631d770256ed36a0d7c64d357dda998b29 /bash/bashrc
parentUse the old push mode for Git (diff)
downloaddotfiles-3d2cd251f6d0b92567ad4d93d2ec54bfea856634.tar.gz
dotfiles-3d2cd251f6d0b92567ad4d93d2ec54bfea856634.zip
Set up my environment vars correctly
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc29
1 files changed, 0 insertions, 29 deletions
diff --git a/bash/bashrc b/bash/bashrc
index c062e20c..a9062e49 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -1,13 +1,6 @@
# Don't do anything if not running interactively.
[[ -z "$PS1" ]] && return
-# Use the system's implementation of vi as my text editor.
-export EDITOR=vi
-export VISUAL=$EDITOR
-
-# Use less as my pager if available.
-hash less &>/dev/null && export PAGER=less
-
# Keep plenty of history.
HISTFILESIZE=1000000
HISTSIZE=1000000
@@ -18,9 +11,6 @@ HISTCONTROL=ignoreboth
# Keep the times of the commands in history.
HISTTIMEFORMAT='%F %T '
-# Don't check for mail all the time, it's irritating.
-unset MAILCHECK
-
# Autocorrect fudged paths in cd calls.
shopt -s cdspell &>/dev/null
@@ -66,22 +56,6 @@ hash stty &>/dev/null && stty -ixon
# Use completion, if available.
[[ -e /etc/bash_completion ]] && source /etc/bash_completion
-# Add various binary paths if they exist
-pathdirs="${HOME}/.local/bin
- ${HOME}/bin
- /usr/local/apache/bin
- /usr/local/mysql/bin
- /usr/local/nagios/bin
- /usr/local/pgsql/bin"
-for pathdir in $pathdirs; do
- [[ -d "$pathdir" ]] \
- && export PATH="${pathdir}:${PATH}"
-done
-
-# Add home directory manual path if it exists
-[[ -d "${HOME}/.local/share/man" ]] \
- && export MANPATH="${HOME}/.local/share/man:${MANPATH}"
-
# Figure out how many colors we have now.
hash tput && colors=$(tput colors)
@@ -126,9 +100,6 @@ if grep --help | grep -- --exclude-dir &>/dev/null; then
grepopts="${grepopts} --exclude-dir=.{cvs,git,hg,svn}"
fi
-# Use UTF-8 linedrawing for passwd
-export TREE_CHARSET='utf-8'
-
# Alias ls and grep with the options we've collected.
alias ls="ls ${lsopts}"
alias grep="grep ${grepopts}"