dotfiles/sh/.profile
Andrew R. M d0ea94c3f2 Move prompt management into bash configuration
Also add better history management. I've been using GNU screen for a
while which messes up history for a lot of shells. Every shell will now
  append to and reread history after each command.
2017-11-03 08:05:36 -04:00

35 lines
725 B
Bash

#{- ~/.profile -}#
#{- PATH -}#
# Prepend ~/.local/bin to the path and append the current directory to the path
export PATH="$HOME/.local/bin:$PATH:."
#{- ENVIRONMENT VARIABLES -}#
# Export language and sorting preferences.
export LANG="en_US.UTF-8"
export LC_COLLATE="C"
# Export editor preferences.
export EDITOR="vim"
export VISUAL="vim"
# Export pager preferences.
export PAGER="less"
export LESSHISTFILE="-"
# Export python preferences.
export PYTHONSTARTUP="$HOME/.pythonrc"
# History preferences
if [ -w "$HOME/.history/sh" ]; then
if [ ! -d "$HOME/.history" ]; then
mkdir "$HOME/.history"
fi
touch "$HOME/.history/sh"
fi
export HISTSIZE=5000
export HISTFILE="$HOME/.history/sh"
export HISTFILESIZE=10000