]> Freerunner's - dotfiles.git/commitdiff
bash: update environment
authorAndre Ramnitz <tux.rising@gmail.com>
Fri, 14 Nov 2025 15:28:48 +0000 (16:28 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Fri, 14 Nov 2025 15:28:48 +0000 (16:28 +0100)
dot-bashrc
dot-profile

index 970ffcafc22c2e740eb4913feda99eb49870358c..1f45cdd2d827e99ea42b756b4f9b08e08b470c13 100644 (file)
@@ -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'
index 9ff9068390d611a1c0aaa035d22d64d49107ec54..a53255debb85e97f3c34c842e42ea8f5cd60eaba 100644 (file)
@@ -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