mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-11-17 17:03:32 +01:00
37123ca4cd
For .Bashrc aswell as generic .Profile
25 lines
410 B
Bash
25 lines
410 B
Bash
# Define DOTFILES for easy access
|
|
DOTFILES="$HOME/.dotfiles"
|
|
|
|
# Add DOTFILES/bin/ to PATH
|
|
DOTBIN="$HOME/.bin"
|
|
if [ -d "$DOTBIN" ]; then
|
|
export PATH="$PATH:$DOTBIN"
|
|
fi
|
|
|
|
|
|
# Always try to use vi(m) if possible
|
|
export EDITOR="vi"
|
|
|
|
|
|
# Source Envs
|
|
DOTENVS="$HOME/.envs"
|
|
if [ -d "DOTENVS" ]; then
|
|
source "$DOTENVS/*.active"
|
|
fi
|
|
|
|
|
|
# Source Bashrc if BASH
|
|
if [ "$BASH" ] && [ -f ~/.bashrc ]; then
|
|
source ~/.bashrc
|
|
fi
|