From 74a74fc59aab8f808d356ac0c7675c628035e64f Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 12 Oct 2016 12:25:50 +0300
Subject: [PATCH] - Added bash_completion.d directory, adapted .bashrc to
 source the files   in the directory, moved the Molecule Bash completion
 script there. - The gcc alias is now even stricter. - Enabled cmdhist.

---
 .../molecule                                                | 0
 .bashrc                                                     | 6 +++---
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename .local/share/bash/molecule.bash-completion.sh => .bash_completion.d/molecule (100%)

diff --git a/.local/share/bash/molecule.bash-completion.sh b/.bash_completion.d/molecule
similarity index 100%
rename from .local/share/bash/molecule.bash-completion.sh
rename to .bash_completion.d/molecule
diff --git a/.bashrc b/.bashrc
index d4c029b..7084591 100644
--- a/.bashrc
+++ b/.bashrc
@@ -10,6 +10,7 @@ if [ -n "$BASH" ]
 then
     shopt -s histappend
     shopt -s checkwinsize
+    shopt -s cmdhist
 fi
 
 # make less more friendly for non-text input files, see lesspipe(1)
@@ -30,13 +31,12 @@ fi
 if [ -f /etc/bash_completion ]; then
     . /etc/bash_completion
 fi
+[ -d $HOME/.bash_completion.d ] && . $HOME/.bash_completion.d/*
 if [ -f /usr/local/bin/virtualenvwrapper.sh ]
 then
     . /usr/local/bin/virtualenvwrapper.sh
 fi
 
-. $HOME/.local/share/bash/molecule.bash-completion.sh
-
 export REPREPRO_BASE_DIR=$HOME/Documents/Shore/debian-repository
 export EDITOR=vim
 export GOPATH=$HOME/Documents/Golang
@@ -50,7 +50,7 @@ export AWS_DEFAULT_PROFILE='shore'
 alias ll='ls -lha'
 alias la='ls -A'
 alias l='ls -CF'
-alias gcc='gcc --std=c99 -Wall'
+alias gcc='gcc --std=c99 -Wall -Wextra -Werror -pedantic'
 alias dpkglog="grep -v 'status\|trigproc\|configure' /var/log/dpkg.log"
 alias deborphan='deborphan -a --no-show-section --ignore-suggests'
 alias aptitude='aptitude --display-format %p --quiet'
-- 
GitLab