Skip to content

Instantly share code, notes, and snippets.

@Bryan2333
Last active May 23, 2025 05:59
Show Gist options
  • Save Bryan2333/16fe07a9b9af1f74677316cf9813727e to your computer and use it in GitHub Desktop.
Save Bryan2333/16fe07a9b9af1f74677316cf9813727e to your computer and use it in GitHub Desktop.
fish shell source /etc/profile
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
@Bryan2333
Copy link
Author

not working for GUI environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment