summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2021-04-06 11:57:33 +0200
committerMarc Vertes <mvertes@free.fr>2021-04-06 11:57:33 +0200
commitc277d54d35c064dafc1abe6be1763dcc6eb99b4d (patch)
treeee4e565a00ed1942e812f7a1ad459dbc314ef812
parent57b4b8f02f6414a609f3279a06d1db316de4d070 (diff)
update
-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'