From 1879cb5cb4795b869313ce57b24893048f451212 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 15 Feb 2017 17:30:41 +0200 Subject: [PATCH] - A little cleanup. --- .bashrc | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.bashrc b/.bashrc index b9d6c51..a4cae8d 100644 --- a/.bashrc +++ b/.bashrc @@ -11,6 +11,14 @@ then shopt -s histappend shopt -s checkwinsize shopt -s cmdhist + if [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi + + [ -d $HOME/.bash_completion.d ] && . $HOME/.bash_completion.d/* + + # added by travis gem + [ -f $HOME/.travis/travis.sh ] && source $HOME/.travis/travis.sh fi # make less more friendly for non-text input files, see lesspipe(1) @@ -28,15 +36,6 @@ if [ -x /usr/bin/dircolors ]; then alias grep='grep --color=auto' fi -if [ -n "$BASH" ] -then - if [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi - - [ -d $HOME/.bash_completion.d ] && . $HOME/.bash_completion.d/* -fi - if [ -f /usr/local/bin/virtualenvwrapper.sh ] then . /usr/local/bin/virtualenvwrapper.sh @@ -107,6 +106,3 @@ docker-dev () { } . $HOME/Documents/Shore/bundle_certs/bundle_certs - -# added by travis gem -[ -f /home/nimrod/.travis/travis.sh ] && source /home/nimrod/.travis/travis.sh -- GitLab