summaryrefslogtreecommitdiffstats
path: root/.bashrc
blob: cb7dd599eb89a7eb93c34de468f5203a725f7a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
alias grep='grep --color=auto'

export PS1="\w > "
export PATH=${PATH}:~/.local/bin:~/.cargo/bin
#export QT_QPA_PLATFORMTHEME=qt6ct

if [ -z "${XDG_RUNTIME_DIR}" ]; then
	export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
	if ! [ -d "${XDG_RUNTIME_DIR}" ]; then
		mkdir "${XDG_RUNTIME_DIR}"
		chmod 0700 "${XDG_RUNTIME_DIR}"
	fi
fi

if [ -z "${WAYLAND_DISPLAY}" ] && [ "$(tty)" = "/dev/tty1" ]; then
	dwl -s .local/bin/dwl-startup.sh
fi