Skip to content
Snippets Groups Projects
Commit 1702bd2d authored by nimrod's avatar nimrod
Browse files

- Include bash completion only when the shell is Bash.

parent facbdcfe
Branches
No related tags found
No related merge requests found
...@@ -28,10 +28,15 @@ if [ -x /usr/bin/dircolors ]; then ...@@ -28,10 +28,15 @@ if [ -x /usr/bin/dircolors ]; then
alias grep='grep --color=auto' alias grep='grep --color=auto'
fi fi
if [ -n "$BASH" ]
then
if [ -f /etc/bash_completion ]; then if [ -f /etc/bash_completion ]; then
. /etc/bash_completion . /etc/bash_completion
fi fi
[ -d $HOME/.bash_completion.d ] && . $HOME/.bash_completion.d/* [ -d $HOME/.bash_completion.d ] && . $HOME/.bash_completion.d/*
fi
if [ -f /usr/local/bin/virtualenvwrapper.sh ] if [ -f /usr/local/bin/virtualenvwrapper.sh ]
then then
. /usr/local/bin/virtualenvwrapper.sh . /usr/local/bin/virtualenvwrapper.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment