~/.profile (line 25): Missing end to balance this if statement
if [ -d "$HOME/local/bin" ] ; then
^
from sourcing file ~/.profile
called on standard input
source: Error while reading file “/home/user/.profile”
На основе ошибки, о которой сообщают Вы, кажется, получаете стиль Границы .profile
в fish
оболочка:
$ fish
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
~>
~> source ~/.profile
Missing end to balance this if statement
~/.profile (line 22): if [ -r "$HOME/env_vars" ]; then
^
from sourcing file ~/.profile
called on standard input
source: Error while reading file “/home/steeldriver/.profile”
Условный синтаксис не совместим между двумя семействами оболочек: см., например, Учебное руководство по рыбе: Условные выражения (Если, Еще, Переключатель)