summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.profile5
-rwxr-xr-xbin/kdeb3
2 files changed, 7 insertions, 1 deletions
diff --git a/.profile b/.profile
index acb8299..deb8145 100644
--- a/.profile
+++ b/.profile
@@ -2,7 +2,10 @@
PATH=~/bin:$PATH:~/go/bin
-[ "${SHELL##*/}" = bash ] && . ~/.bashrc
+[ "${SHELL##*/}" = bash ] && {
+ . ~/.bashrc
+ eval "$(gh completion -s bash)"
+}
# Last action: auto start X11 when logged on first console
#case $HOSTNAME in
diff --git a/bin/kdeb b/bin/kdeb
new file mode 100755
index 0000000..0cb036f
--- /dev/null
+++ b/bin/kdeb
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+[ "$USER" = root ] || exec sudo "$0" "$@"
+exec cat '/sys/kernel/debug/tracing/trace_pipe'