# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
+export EDITOR='kak'
+export VISUAL='kak'
+
alias cdg='cd "$(git rev-parse --show-toplevel)"'
alias df='/usr/bin/df -h --output=target,fstype,used,avail,pcent,source | sort -n'
alias du='du -h'
# All other interactive shells will only read .bashrc; this is particularly
# important for language settings, see below.
+#shellcheck disable=SC2015,SC1091
test -z "$PROFILEREAD" && . /etc/profile || true
# Some applications read the EDITOR variable to determine your favourite text
# editor. So uncomment the line below and enter the editor of your choice :-)
-# export EDITOR=/usr/bin/vim
-# export EDITOR=/usr/bin/mcedit
+# export EDITOR=/usr/bin/jed
+# export EDITOR=/usr/bin/jed
# For some news readers it makes sense to specify the NEWSSERVER variable here
#export NEWSSERVER=your.news.server
# echo
#fi
-# Ensure XDG_RUNTIME_DIR is set
-if test -z "$XDG_RUNTIME_DIR"; then
- export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
+# keep it here, just in case...
+if [ -z "$XDG_RUNTIME_DIR" ]; then
+ XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"
+ mkdir -pm 0700 "$XDG_RUNTIME_DIR"
+ export XDG_RUNTIME_DIR
fi
if [ -t 0 ]; then
- # interactive commands here
+ echo Hack along...
fi