-function gdb-posix () {
- # Producing coredumps on segfaults is usually what I want by default
- if [ ! -f .breakpoints ] ; then echo '
-catch signal SIGSEGV
-commands
-gcore core.latest
-end
-' >.breakpoints ; fi
- gdb "$@"
-}
export PATH="$HOME/.local/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
# This is equivalent to 'auto-load' but with '.breakpoints'
-# Remove this as well if you don't like 'auto-load'
-alias gdb="gdb-posix -ex 'source .breakpoints'"
+# if you look at the script. Remove this as well if you
+# don't like 'auto-load'
+alias gdb="gdb-posix"
# Debian comes with Wayland so this is what I use
# If you use X, then xclip is what you're looking for
--- /dev/null
+#!/bin/sh
+# Producing coredumps on segfaults is usually what I want by default
+if [ ! -f .breakpoints ] ; then echo '
+catch signal SIGSEGV
+commands
+gcore core.latest
+end
+' >.breakpoints ; fi
+gdb -ex 'source .breakpoints' "$@"
dotfiles so simple, they fit on a page
## .vimrc / .exrc
-
```
set autoindent
set ignorecase
```
## .tmux.conf
-
```
# I may or may not have protanopia so this makes the contrast higher while still looking green to me
set -g window-style bg=#000000,fg=#60e000
```
## .bashrc or similar
-
```
-function gdb-posix () {
- # Producing coredumps on segfaults is usually what I want by default
- if [ ! -f .breakpoints ] ; then echo '
-catch signal SIGSEGV
-commands
-gcore core.latest
-end
-' >.breakpoints ; fi
- gdb "$@"
-}
export PATH="$HOME/.local/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
alias tmux-paste="wl-paste"
```
+## .local/bin/gdb-posix
+```
+#!/bin/sh
+# Producing coredumps on segfaults is usually what I want by default
+if [ ! -f .breakpoints ] ; then echo '
+catch signal SIGSEGV
+commands
+gcore core.latest
+end
+' >.breakpoints ; fi
+gdb -ex 'source .breakpoints' "$@"
+```
+
## .ssh config
```
Host github.com