dotfiles/.profile

51 lines
1.1 KiB
Text
Raw Normal View History

2022-08-08 23:08:17 +02:00
# Executed by a login shell (e.g., bash, sh, or zsh) during start-up
2022-08-09 01:16:07 +02:00
export EDITOR=vim
2022-08-08 23:08:17 +02:00
export PAGER='less --chop-long-lines --ignore-case --LONG-PROMPT --no-init --status-column --quit-if-one-screen'
export TERM=xterm-256color
export TZ='Europe/Berlin'
2022-08-09 01:16:07 +02:00
export VISUAL=$EDITOR
2022-08-08 23:08:17 +02:00
export REPOS="$HOME/repos"
2022-08-10 13:55:23 +02:00
export BAT_CONFIG_PATH="$HOME/.config/bat/config"
2022-08-08 23:08:17 +02:00
export LESSHISTFILE="$HOME/.lesshst"
export PYENV_ROOT="$HOME/.pyenv"
# No need for *.pyc files on a dev machine
export PYTHONDONTWRITEBYTECODE=1
2022-08-09 01:21:46 +02:00
export PSQLRC="$HOME/.psqlrc"
2022-08-08 23:08:17 +02:00
prepend-to-path () { # if not already there
if [ -d "$1" ] ; then
case :$PATH: in
*:$1:*) ;;
*) PATH=$1:$PATH ;;
esac
fi
}
prepend-to-path "$HOME/bin"
prepend-to-path "$HOME/.local/bin"
prepend-to-path "$PYENV_ROOT/bin"
2022-08-08 23:08:17 +02:00
# Shell-specific stuff
2022-08-08 23:59:31 +02:00
# zsh-specific stuff is automatically sourced from
# ~/.zshenv, ~/.zprofile, ~/.zlogin, and ~/.zshrc
2022-08-08 23:08:17 +02:00
# Source ~/.bashrc if we are running inside a bash shell
# because it is NOT automatically sourced by bash
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi
fi