From my testing it seems the steam deck does not source a .bash_profile
or a .profile
file inside ~
(by default /home/deck
)
After some investigation there is a bash profile deep in the OS which has the following:
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: /home/.steamos/offload/root/.bash_profile
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ # SPDX-License-Identifier: MIT
2 │ #
3 │ # Copyright © 2020 Collabora Ltd.
4 │ # Copyright © 2020 Valve Corporation.
5 │ #
6 │ # This file is part of steamos-image-recipes.
7 │ #
8 │ # steamos-image-recipes is free software; you can redistribute it and/or modify
9 │ # it under the terms of the GNU Lesser General Public License as published
10 │ # by the Free Software Foundation; either version 2.1 of the License, or
11 │ # (at your option) any later version.
12 │
13 │ #
14 │ # ~/.bash_profile
15 │ #
16 │
17 │ [[ -f ~/.bashrc ]] && . ~/.bashrc
───────┴──────────────────────────────────
There is also a copy of this file on /etc/skel/.bash_profile
My understanding is that .bash_profile
should source .bashrc
and not the other way around, but in this case it seems there is no way for me to add a file on the home directory that only gets sourced once and not on every single new shell.
So I have the following questions:
- Is my assessment correct or could this be some SteamOS / archlinux quirk?
- Should I source my aliases and exports on this
~/.bashrc
or modify the system files to also source my~/.bash_profile
?
Thanks in advance!
bash --version 5.01.16
konsole --version 23.04.2
Steam LCD model, version: Linux steamdeck 6.1.52-valve16-1-neptune-61