Fix ~/.profile not being loaded with Fish

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2024-07-27 22:21:50 +02:00
parent a7e8b55c6e
commit 92c6a38835
No known key found for this signature in database
GPG Key ID: 3E85EB44F610AD7F
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ case $SHELL in
;;
*/fish)
[ -f /etc/profile ] && . /etc/profile
[ -f $HOME/.profile ] && . $HOME/.profile
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
$SHELL --login -c "/bin/sh -c 'export -p' > $xsess_tmp"
. $xsess_tmp

View File

@ -40,6 +40,7 @@ case $SHELL in
;;
*/fish)
[ -f /etc/profile ] && . /etc/profile
[ -f $HOME/.profile ] && . $HOME/.profile
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
$SHELL --login -c "/bin/sh -c 'export -p' > $xsess_tmp"
. $xsess_tmp