From 90bc1e90f2ac541eb63ca0d0b41aa151f4e35af6 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Tue, 3 May 2016 18:21:36 +0200 Subject: [PATCH] Source all files in .bash folder --- .bash/aliases | 4 ++-- .bashrc | 3 ++- .bash/dircolors => .dircolors | 0 README.md | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) rename .bash/dircolors => .dircolors (100%) diff --git a/.bash/aliases b/.bash/aliases index d2600d3..04632f0 100644 --- a/.bash/aliases +++ b/.bash/aliases @@ -48,10 +48,10 @@ LS_COMMON="-hF" # Detect which `ls` flavor is in use if whence dircolors > /dev/null 2>&1; then # GNU `ls` - eval $(dircolors -b $HOME/.bash/dircolors) + eval $(dircolors -b $HOME/.dircolors) colorflag="--color" else # OS X `ls` - #eval $(gdircolors $HOME/.bash/dircolors) + #eval $(gdircolors $HOME/.dircolors) export CLICOLOR=1 colorflag="-G" fi diff --git a/.bashrc b/.bashrc index 2b416bb..016057a 100644 --- a/.bashrc +++ b/.bashrc @@ -5,7 +5,8 @@ #[ -n "$PS1" ] && source ~/.bash_profile; # Load the shell dotfiles -for file in ~/.bash/{options,completion,exports,aliases,functions,prompt,extra,paths}; do +for file in ~/.bash/*; +do [ -r "$file" ] && [ -f "$file" ] && source "$file"; done; diff --git a/.bash/dircolors b/.dircolors similarity index 100% rename from .bash/dircolors rename to .dircolors diff --git a/README.md b/README.md index 474b5f8..b656696 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,4 @@ What you need to do on the new box is this: $ git fetch origin master $ git reset --hard origin/master $ git branch -u origin/master - $ git submodule update + $ git submodule update --init --recursive -- 2.43.0