'.' => 'source' (some people alias '.' as something different)
This commit is contained in:
@@ -19,7 +19,7 @@ for rc in bashrc zshrc; do
|
||||
done
|
||||
|
||||
# Load SCM Breeze update scripts
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
# Create '~/.*.scmbrc' files from example files
|
||||
_create_or_patch_scmbrc
|
||||
|
||||
|
||||
@@ -8,28 +8,28 @@ export scmbDir="$(dirname ${BASH_SOURCE:-$0})"
|
||||
[ -s "$HOME/.scmbrc" ] && . "$HOME/.scmbrc"
|
||||
|
||||
# Shared functions
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
# Design assets management
|
||||
. "$scmbDir/lib/design.sh"
|
||||
source "$scmbDir/lib/design.sh"
|
||||
|
||||
# Git
|
||||
# ------------------------------------------------------------
|
||||
if [[ -s "$HOME/.git.scmbrc" ]]; then
|
||||
# Load git config
|
||||
. "$HOME/.git.scmbrc"
|
||||
. "$scmbDir/lib/git/helpers.sh"
|
||||
. "$scmbDir/lib/git/aliases.sh"
|
||||
. "$scmbDir/lib/git/keybindings.sh"
|
||||
. "$scmbDir/lib/git/status_shortcuts.sh"
|
||||
. "$scmbDir/lib/git/branch_shortcuts.sh"
|
||||
. "$scmbDir/lib/git/shell_shortcuts.sh"
|
||||
. "$scmbDir/lib/git/repo_index.sh"
|
||||
. "$scmbDir/lib/git/tools.sh"
|
||||
source "$HOME/.git.scmbrc"
|
||||
source "$scmbDir/lib/git/helpers.sh"
|
||||
source "$scmbDir/lib/git/aliases.sh"
|
||||
source "$scmbDir/lib/git/keybindings.sh"
|
||||
source "$scmbDir/lib/git/status_shortcuts.sh"
|
||||
source "$scmbDir/lib/git/branch_shortcuts.sh"
|
||||
source "$scmbDir/lib/git/shell_shortcuts.sh"
|
||||
source "$scmbDir/lib/git/repo_index.sh"
|
||||
source "$scmbDir/lib/git/tools.sh"
|
||||
|
||||
if ! type ruby > /dev/null 2>&1; then
|
||||
# If Ruby is not installed, fall back to the
|
||||
# slower bash/zsh implementation of 'git_status_shortcuts'
|
||||
. "$scmbDir/lib/git/fallback/status_shortcuts_shell.sh"
|
||||
source "$scmbDir/lib/git/fallback/status_shortcuts_shell.sh"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../.."
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Load functions to test
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
. "$scmbDir/lib/design.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/design.sh"
|
||||
|
||||
|
||||
# Setup and tear down
|
||||
@@ -83,5 +83,5 @@ test_design() {
|
||||
|
||||
# load and run shUnit2
|
||||
# Call this function to run tests
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../../.."
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Load functions to test
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
. "$scmbDir/lib/git/repo_index.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/git/repo_index.sh"
|
||||
|
||||
|
||||
# Setup and tear down
|
||||
@@ -190,5 +190,5 @@ test_changing_to_top_level_directory() {
|
||||
|
||||
# load and run shUnit2
|
||||
# Call this function to run tests
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ else
|
||||
fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Setup
|
||||
#-----------------------------------------------------------------------------
|
||||
@@ -69,4 +69,4 @@ test_shell_command_wrapping() {
|
||||
|
||||
|
||||
# load and run shUnit2
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
@@ -13,11 +13,11 @@ export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../../.."
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Load functions to test
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
. "$scmbDir/lib/git/status_shortcuts.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/git/status_shortcuts.sh"
|
||||
|
||||
|
||||
# Setup and tear down
|
||||
@@ -274,5 +274,5 @@ test_adding_files_with_spaces() {
|
||||
|
||||
|
||||
# load and run shUnit2
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
|
||||
@@ -1015,7 +1015,7 @@ noexec 2>/dev/null || _shunit_fatal \
|
||||
|
||||
# we must manually source the tests in standalone mode
|
||||
if [ "${__shunit_mode}" = "${__SHUNIT_MODE_STANDALONE}" ]; then
|
||||
. "`_shunit_prepForSourcing \"${__shunit_script}\"`"
|
||||
source "`_shunit_prepForSourcing \"${__shunit_script}\"`"
|
||||
fi
|
||||
|
||||
# execute the oneTimeSetUp function (if it exists)
|
||||
|
||||
Reference in New Issue
Block a user