# Main bash configuration file.
+#
+# Is sourced by all interactive shells and other shells like scp or rcp.
# Get the current hostname (first part before a dot).
# 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
+if [[ $- != *i* ]]; then
return
fi
# Use Vi(m) style in bash.
set -o vi
+# Load aliases and similar functions also used by other shells.
+if [[ -f ~/.shell/aliases ]]; then
+ . ~/.shell/aliases
+fi
+
# Load rc file for current hostname (first part before a dot) or rc.local.
source_config ~/.bash host rc $host