mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
Reorganise bash files
This commit is contained in:
26
bash/.bashrc
26
bash/.bashrc
@@ -5,16 +5,32 @@ if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
# User specific environment
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
export PATH
|
||||
|
||||
# Source functions, if it exists
|
||||
if [ -e $HOME/.bash/functions.bash ]; then
|
||||
if [ -f $HOME/.bash/functions.bash ]; then
|
||||
source $HOME/.bash/functions.bash
|
||||
fi
|
||||
|
||||
# Source aliases, if it exists
|
||||
if [ -e $$HOME/.bash/aliases.bash ]; then
|
||||
if [ -f $HOME/.bash/aliases.bash ]; then
|
||||
source $HOME/.bash/aliases.bash
|
||||
fi
|
||||
|
||||
# User specific environment
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
export PATH
|
||||
# Source exports, if it exists
|
||||
if [ -f $HOME/.bash/exports.bash ]; then
|
||||
source $HOME/.bash/exports.bash
|
||||
fi
|
||||
|
||||
# Source completions, if it exists
|
||||
if [ -f $HOME/.bash/exports.bash ]; then
|
||||
source $HOME/.bash/completions.bash
|
||||
fi
|
||||
|
||||
# Load iTerm2 integration, for all hosts
|
||||
source ~/.bash/iterm2_integration.bash
|
||||
|
||||
# Homebrew
|
||||
[ -d /opt/homebrew ]; eval $(/opt/homebrew/bin/brew shellenv)
|
||||
Reference in New Issue
Block a user