Last active
May 23, 2025 05:59
-
-
Save Bryan2333/16fe07a9b9af1f74677316cf9813727e to your computer and use it in GitHub Desktop.
fish shell source /etc/profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if status is-login | |
if not set -q __sourced_profile | |
set -x __sourced_profile 1 | |
exec bash -c "\ | |
test -e /etc/profile && source /etc/profile | |
test -e $HOME/.bash_profile && source $HOME/.bash_profile | |
exec fish --login | |
" | |
end | |
# 下面是其余配置 | |
# | |
set -e __sourced_profile | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not working for GUI environment