dotfiles/sh/.profile
Andrew R. M c29c31200b Ensure that a history directory is created
This code did not actually work before ;_;

I forgot a !
2018-01-04 19:06:22 -05:00

39 lines
843 B
Bash

#{- ~/.profile -}#
# Only execute this file once per shell
if [ -n "$__PROFILE_SOURCED" ]; then return; fi
export __PROFILE_SOURCED=1
#{- 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