From: Andre Ramnitz Date: Sat, 19 Jul 2025 18:04:24 +0000 (+0200) Subject: bash: clean up profile/bash_profile X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=8ebff7ab864fcac62e9c3c1938f9c7eeac8ae1c1;p=dotfiles.git bash: clean up profile/bash_profile --- diff --git a/dot-bash_profile b/dot-bash_profile index bddd0da4..c0cf92f3 100644 --- a/dot-bash_profile +++ b/dot-bash_profile @@ -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 diff --git a/dot-profile b/dot-profile index 75d78c57..4ff47c87 100644 --- a/dot-profile +++ b/dot-profile @@ -1,11 +1,31 @@ -#!/bin/sh +# Sample .profile for SUSE Linux +# rewritten by Christian Steinruecken +# +# 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