summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdbinit5
-rwxr-xr-xinstall15
-rw-r--r--install.config15
3 files changed, 28 insertions, 7 deletions
diff --git a/gdbinit b/gdbinit
new file mode 100644
index 0000000..758d532
--- /dev/null
+++ b/gdbinit
@@ -0,0 +1,5 @@
+# dotfiles -- gdbinit
+# author: johannst
+
+set history filename ~/.gdb_history
+set history save on
diff --git a/install b/install
index 64116ea..d47c33e 100755
--- a/install
+++ b/install
@@ -7,6 +7,7 @@ gInstallConfigFile=install.config
#"<config_tag>:<dep_binary>:<installer_fct_name>"
gToolsConfig=(
"bashrc:bash:bashrcInstaller"
+"gdb:cgdb:gdbrcInstaller"
"cgdb:cgdb:cgdbrcInstaller"
"conkyrc:conky:conkyrcInstaller"
"gitconfig:git:gitConfigInstaller"
@@ -33,6 +34,20 @@ function bashrcInstaller() {
}
#}}}
+#{{{ 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
function cgdbrcInstaller() {
diff --git a/install.config b/install.config
index 8f01435..e9d8be9 100644
--- a/install.config
+++ b/install.config
@@ -3,10 +3,11 @@
# line format: [yYnN] - <config_tag>
# lines not starting with [yYnN] are ignored
-y - bashrc
-y - cgdb
-y - conkyrc
-y - gitconfig
-y - tmux.conf
-y - vimrc
-y - Xresources
+n - bashrc
+n - gdb
+n - cgdb
+n - conkyrc
+n - gitconfig
+n - tmux.conf
+n - vimrc
+n - Xresources