From 75e72bfaddb16c6b9deb89c8b76a4267ee8c9436 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 2 Apr 2017 12:06:28 +0200 Subject: added gdbinit + installer; install default false for every config file --- install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'install') diff --git a/install b/install index 64116ea..d47c33e 100755 --- a/install +++ b/install @@ -7,6 +7,7 @@ gInstallConfigFile=install.config #"::" gToolsConfig=( "bashrc:bash:bashrcInstaller" +"gdb:cgdb:gdbrcInstaller" "cgdb:cgdb:cgdbrcInstaller" "conkyrc:conky:conkyrcInstaller" "gitconfig:git:gitConfigInstaller" @@ -32,6 +33,20 @@ function bashrcInstaller() { echo "[Info]: bashrc sucessfully installed!" } +#}}} +#{{{ gdbrcInstaller + +function gdbrcInstaller() { + local gdbinit=~/.gdbinit + touch $gdbinit + grep $gMagicNumber $gdbinit > /dev/null 2>&1 + if [[ $? = 0 ]]; then + return + fi + echo -e "\n# $gMagicNumber - Auto generated, do not delete or modify!" >> $gdbinit + echo -e "source $ABS_BASE_DIR/gdbinit" >> $gdbinit +} + #}}} #{{{ cgdbrcInstaller -- cgit v1.2.3