From: Andre Ramnitz Date: Fri, 23 Jan 2026 19:01:48 +0000 (+0100) Subject: bash: update environment X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;ds=inline;p=dotfiles.git bash: update environment --- diff --git a/dot-bash_profile b/dot-bash_profile index 88f4cca3..9cba21a9 100644 --- a/dot-bash_profile +++ b/dot-bash_profile @@ -1,12 +1,12 @@ #!/bin/bash -export PATH="$PATH:$HOME/Applications:$HOME/go/bin:$HOME/.cargo/bin:/opt/android-sdk/platform-tools" +export PATH="{$PATH}:$HOME/node_modules/.bin:$HOME/Applications:$HOME/go/bin:$HOME/.cargo/bin:/opt/android-sdk/platform-tools" # User specific environment if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then PATH="$HOME/.local/bin:$HOME/bin:$PATH" fi -export PATH +export PATH # no leading $umbass export EDITOR="kak" export VISUAL="kak" @@ -25,6 +25,7 @@ export ZSTD_NBTHREADS="28" export VDPAU_DRIVER=radeonsi export GTK_USE_PORTAL=1 +export XDG_MENU_PREFIX=plasma- # This file is sourced by bash for login shells. The following line # runs your .bashrc and is recommended by the bash info pages. diff --git a/dot-bashrc b/dot-bashrc index 18ea0c3d..2414d514 100644 --- a/dot-bashrc +++ b/dot-bashrc @@ -12,8 +12,7 @@ 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' -alias fastfetch='fastfetch -c "$HOME/.config/fastfetch/default.jsonc"' -alias ff='fastfetch' +alias ff='fastfetch -c "$HOME/.config/fastfetch/default.jsonc"' alias grep='command grep -sil --color=auto' alias gdi='git diff ' alias gg='cd "$(git rev-parse --show-toplevel)"' @@ -98,11 +97,11 @@ if [ -t 0 ]; then case $(tty) in /dev/tty[0-9]*) command -v ttyscheme > /dev/null 2>&1 && ttyscheme c64 - test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true + test -e /usr/bin/fastfetch && echo ".bashrc says: hack along..." || true ;; /dev/pts/[0-9]*) # command -v base16-flavours > /dev/null 2>&1 && ~/.local/bin/base16-flavours || true - test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true + test -e /usr/bin/fastfetch && echo ".bashrc says: hack along..." || true ;; esac fi diff --git a/dot-profile b/dot-profile index a53255de..1dc57f78 100644 --- a/dot-profile +++ b/dot-profile @@ -27,12 +27,19 @@ test -z "$PROFILEREAD" && . /etc/profile || true # 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 + XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" + mkdir -pm 0700 "$XDG_RUNTIME_DIR" + export XDG_RUNTIME_DIR fi -if [ -t 0 ]; then - echo Hack along... +if [ -z "$XDG_SESSION_BUS_ADDRESS" ]; then + export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" fi +export SDL_JOYSTICK_HIDAPI=0 + +export PATH="${PATH}:$HOME/node_modules/.bin" + +if [ -t 0 ]; then + echo ".profile says: hack along..." +fi