Skip to content

Instantly share code, notes, and snippets.

@kj-sh604
Created August 7, 2023 04:16
Show Gist options
  • Select an option

  • Save kj-sh604/db614b6a606002b99db7d35f7906cdd8 to your computer and use it in GitHub Desktop.

Select an option

Save kj-sh604/db614b6a606002b99db7d35f7906cdd8 to your computer and use it in GitHub Desktop.
bashisms in fish: source `/etc/profile` and `.zprofile` if they exist on tty login (no display manager)
if status is-login
exec bash -c "test -e /etc/profile && source /etc/profile;\
test -e ~/.zprofile && source ~/.zprofile;\
exec fish"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment