]> Freerunner's - dotfiles.git/commitdiff
bash: clean up profile/bash_profile
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Jul 2025 18:04:24 +0000 (20:04 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Jul 2025 18:04:24 +0000 (20:04 +0200)
dot-bash_profile
dot-profile

index bddd0da4ec37609a30e04cc2b37133b3bb88163e..c0cf92f33e2bdacb888d2fb08d7cbd1fcba8637c 100644 (file)
@@ -1,10 +1,5 @@
 #!/bin/bash
 
-# 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)
-fi
-
 export PATH="$PATH:$HOME/Applications:$HOME/go/bin:$HOME/.cargo/bin:/opt/android-sdk/platform-tools:$HOME/.local/bin"
 
 export EDITOR="kak"
@@ -27,18 +22,5 @@ export GTK_USE_PORTAL=1
 
 # This file is sourced by bash for login shells.  The following line
 # runs your .bashrc and is recommended by the bash info pages.
-if grep -q suse /etc/os-release; then
-    # for compatibility with OpenSuSE don't forget to source .bash_profile from .profile
-    true
-else
-    test -f ~/.bashrc && . .bashrc || true
-fi
-
-# autorun display-manager
-# if { [ -z "$DISPLAY" ] || [ -z "$WAYLAND_DISPLAY" ]; } && [ "$XDG_VTNR" -eq "1" ]; then
-  #startx
-  #dbus-launch --exit-with-session /usr/bin/startplasma-wayland
-  #dbus-launch --exit-with-session Hyprland
-  # tbsm
-# fi
+test -f ~/.bashrc && . .bashrc || true
 
index 75d78c577c7356a8240f0c3a3cdaa41c0f01f065..4ff47c8714fa0a35f6bc7c85050e1f9cfd45ba69 100644 (file)
@@ -1,11 +1,31 @@
-#!/bin/sh
+# Sample .profile for SUSE Linux
+# rewritten by Christian Steinruecken <cstein@suse.de>
+#
+# This file is read each time a login shell is started.
+# All other interactive shells will only read .bashrc; this is particularly
+# important for language settings, see below.
 
-test -f /etc/profile && . /etc/profile
+test -z "$PROFILEREAD" && . /etc/profile || true
 
-export PATH="$PATH:$HOME/Applications:$HOME/go/bin:$HOME/.cargo/bin:/opt/android-sdk/platform-tools:$HOME/.local/bin"
+# 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="kak"
-export VISUAL="kak"
-export MAN_PAGER="sh -c 'col -bx | bat -l man -p'"
-export FZF_DEFAULT_OPTS='--multi --layout=reverse --preview-window=down:60% --color fg+:3,hl+:4'
+# For some news readers it makes sense to specify the NEWSSERVER variable here
+#export NEWSSERVER=your.news.server
+
+# Some people don't like fortune. If you uncomment the following lines,
+# you will have a fortune each time you log in ;-)
+
+#if [ -x /usr/bin/fortune ] ; then
+#    echo
+#    /usr/bin/fortune
+#    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)
+fi