dotfiles/bash/.profile

52 lines
1.2 KiB
Bash

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH"
fi
export GOPATH=$HOME/devel/go
if [ -d /usr/local/go/bin ]
then
export PATH=/usr/local/go/bin:$PATH
fi
if [ -d $HOME/.local/bin ]
then
export PATH=$HOME/.local/bin:$PATH
fi
if which go
then
export PATH=$PATH:$(go env GOPATH)/bin
fi
#PATH="/usr/local/opt/python/libexec/bin:$PATH"
if [ -f ~/.profile.local ]; then
. ~/.profile.local
fi
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
if [[ "$OSTYPE" == "linux-gnu"* && ! -f /etc/debian_version ]]
then
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
touch ~/foo
eval "$(pyenv init -)"
fi
# eval "$(pyenv virtualenv-init -)"
fi
fi