dotfiles/home/private_dot_bashrc.d/fish

14 lines
526 B
Text
Raw Normal View History

2025-01-22 09:20:19 +01:00
# vim: filetype=sh
#
## Start fish shell for my terminals
## We can use `lchsh` to change the shell, however, because fish cannot read
## shell files it will also disable loading of /etc/profile and what is worse
## even /etc/profile.d/. Thanks to that we are missing a lot of environment
## variables like XDG_DATA_DIR injected by Flatpaks to get the Flatpak Desktop
## files.
## This is a workaround to have fish in terminal but not for the system
## loading.
[ ! -z "$PS1" ] && [ -x /usr/bin/fish ] && exec /usr/bin/fish