shell: source env in profile
This commit is contained in:
parent
1aac39b453
commit
fa57b1f69b
1 changed files with 5 additions and 3 deletions
|
@ -1,15 +1,15 @@
|
|||
#!/bin/sh
|
||||
# shellcheck disable=SC2155
|
||||
|
||||
export PROFILE_LOADED=false
|
||||
export SHELL_CONFIG_DIR="${SHELL_CONFIG_DIR:-"${XDG_CONFIG_HOME:-"$HOME/.config"}/shell"}"
|
||||
|
||||
. "$SHELL_CONFIG_DIR/env"
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/.local/bin" ] ; then
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
fi
|
||||
|
||||
export SHELL_CONFIG_DIR="${SHELL_CONFIG_DIR:-"${XDG_CONFIG_HOME:-"$HOME/.config"}/shell"}"
|
||||
|
||||
# Locales
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
|
@ -50,6 +50,8 @@ export VDPAU_DRIVER=va_gl # Fix steam remote play black screen
|
|||
# shellcheck disable=SC2046
|
||||
export $(dbus-launch)
|
||||
|
||||
|
||||
|
||||
# If running in a TTY…
|
||||
if [ "$(tty | sed 's-[0-9]$--g')" = /dev/tty ]; then
|
||||
export IS_TTY=true
|
||||
|
|
Loading…
Add table
Reference in a new issue