#!/bin/bash

# Source global definitions
if [ -f /etc/bashrc ]; then
	source /etc/bashrc
fi

# Local profile
[ -n "$PS1" ] && source ~/.bash_profile

#!/bin/bash

[ -n "$PS1" ] && source ~/.bash_profile

--- 
+++ 
@@ -1,3 +1,9 @@
 #!/bin/bash
 
+# Source global definitions
+if [ -f /etc/bashrc ]; then
+	source /etc/bashrc
+fi
+
+# Local profile
 [ -n "$PS1" ] && source ~/.bash_profile
Add global definitions to .bashrc
