From f8cf666a636a625e5fd6f5a6b6abb44f8c84ed45 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Fri, 14 Nov 2025 16:28:48 +0100 Subject: [PATCH] bash: update environment --- dot-bashrc | 3 +++ dot-profile | 15 +++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/dot-bashrc b/dot-bashrc index 970ffcaf..1f45cdd2 100644 --- a/dot-bashrc +++ b/dot-bashrc @@ -6,6 +6,9 @@ # 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' diff --git a/dot-profile b/dot-profile index 9ff90683..a53255de 100644 --- a/dot-profile +++ b/dot-profile @@ -5,12 +5,13 @@ # 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 @@ -24,12 +25,14 @@ test -z "$PROFILEREAD" && . /etc/profile || true # 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 -- 2.51.2