1
0
Fork 0

.profile: formatting

main
urosm 2024-07-09 11:14:26 +02:00
parent 4fe40729de
commit fbc5415fd0
1 changed files with 15 additions and 15 deletions

View File

@ -2,10 +2,10 @@
# if running bash # if running bash
if [ -n "$BASH_VERSION" ]; then if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists # include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc" . "$HOME/.bashrc"
fi fi
fi fi
# set PATH so it includes user's private bin if it exists # set PATH so it includes user's private bin if it exists
@ -15,7 +15,7 @@ fi
# set PATH so it includes user's private bin if it exists # set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ]; then if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
fi fi
# xdg base directory specification # xdg base directory specification
@ -29,7 +29,7 @@ export XDG_CONFIG_DIRS=/etc/xdg
# .bash_history # .bash_history
export HISTFILE="$XDG_STATE_HOME"/bash/history export HISTFILE="$XDG_STATE_HOME"/bash/history
if [ ! -d "$(dirname "${HISTFILE}")" ]; then if [ ! -d "$(dirname "${HISTFILE}")" ]; then
mkdir -p "$(dirname "${HISTFILE}")" mkdir -p "$(dirname "${HISTFILE}")"
fi fi
# .inputrc # .inputrc
@ -40,14 +40,14 @@ export EDITOR=vi
# desktop # desktop
if [ "$(tty)" = "/dev/tty1" ] && command -v sway >/dev/null; then if [ "$(tty)" = "/dev/tty1" ] && command -v sway >/dev/null; then
# locale # locale
export LANG=sl_SI.UTF-8 export LANG=sl_SI.UTF-8
export LC_MESSAGES=en_US.UTF-8 export LC_MESSAGES=en_US.UTF-8
# defaults # defaults
export TERMINAL=footclient export TERMINAL=footclient
export BROWSER=firefox export BROWSER=firefox
# run sway # run sway
export XDG_CURRENT_DESKTOP=sway export XDG_CURRENT_DESKTOP=sway
export WLR_RENDERER=vulkan export WLR_RENDERER=vulkan
exec systemd-cat --identifier sway sway exec systemd-cat --identifier sway sway
fi fi