Get aliases even in non-interactive shells.

This commit is contained in:
David Tomaschik
2014-05-26 10:20:13 -07:00
parent 63a6f8bb32
commit 3839ac9e2f
2 changed files with 5 additions and 1 deletions

View File

@@ -21,3 +21,6 @@ alias mdcode="sed 's/^/ /'"
# Intel format plz # Intel format plz
alias objdump="command objdump -M intel" alias objdump="command objdump -M intel"
# Color support in less
alias less="command less -R"

View File

@@ -9,6 +9,7 @@ if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc" . "$HOME/.bashrc"
fi fi
shopt -s expand_aliases
fi fi
# Paths and preferences # Paths and preferences
@@ -41,4 +42,4 @@ export GPG_TTY=`tty`
# End GPG # End GPG
if [ -e $HOME/.localenv ] ; then source $HOME/.localenv ; fi if [ -e $HOME/.localenv ] ; then source $HOME/.localenv ; fi
if [[ $- == *i* ]] && [[ -e $HOME/.aliases ]] ; then source $HOME/.aliases ; fi if [[ -e $HOME/.aliases ]] ; then source $HOME/.aliases ; fi