-# Load environmental related settings used by all shells.
-if [ -f ~/.shell/env ]; then
- source ~/.shell/env
-else
- function source_config() {
- echo "Couldn't load source_config(), can't source files." >&2
- }
+source_debug ". ~/.bash/rc"
+
+source_config ~/.shell/env
+
+
+# Check if this is an interactive shell. Abort if not to prevent problems with
+# scp and rcp. Taken from default Debian bashrc. Thanks.
+if [[ $- != *i* ]]; then
+ return