#!/bin/bash
-# /etc/skel/.bash_profile
+# /etc/skel/.bash_profile
export PATH="$PATH:$HOME/Applications:$HOME/go/bin:$HOME/.cargo/bin:/opt/android-sdk/platform-tools:$HOME/.local/bin"
export EDITOR="kks edit"
# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
- if [[ -f ~/.bashrc ]] ; then
- . ~/.bashrc
- fi
+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
+# 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
+ # tbsm
+# fi
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
-
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 nano='nano -_qpT4 '
alias free='free -h --si'
alias lsblk='lsblk -o name,partuuid,type,size,fstype,label,mountpoints'
-alias lf='lfrun'
+alias lf='lfrun'
# compatibility with OpenSuSE
-if [[ "$(grep -i suse /etc/os-release)" ]]; then
- . ~/.bash_profile
-fi
test -e ~/.alias && . ~/.alias || true
case $(tty) in
command -v starship > /dev/null 2>&1 && eval "$(starship init bash)"
# apply base16 theme
-test -f ~/.local/bin/base16-flavours && ~/.local/bin/base16-flavours
+test -e ~/.local/bin/base16-flavours && ~/.local/bin/base16-flavours || true
clear
-test -f /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc"
+test -e /usr/bin/fastfetch && command fastfetch -c "$HOME/.config/fastfetch/default.jsonc" || true