Broken terminal after adding export commands to .profile

I can't get my terminal back. I added the following commands to try and install packages in Go lang.

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin

now after sourcing .profile and opening the terminal it refuses to run any commands whatsoever and I don't have a system snapshot. Will I have to reinstall Garuda?

I get this when opening the terminal for the first time

ish: Unknown command: mktemp
/usr/share/fish/functions/psub.fish (line 1): 
mktemp $tmpdir/.psub.XXXXXXXXXX
^
in command substitution
called on line 37 of file /usr/share/fish/functions/psub.fish
in function 'psub'
called on line 1 of file ~/.config/fish/config.fish
in command substitution
called on line 33 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
called during startup
/usr/share/fish/functions/psub.fish (line 37): Unknown error while evaluating command substitution
set filename (mktemp $tmpdir/.psub.XXXXXXXXXX)
^
in function 'psub'
called on line 1 of file ~/.config/fish/config.fish
in command substitution
called on line 33 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
called during startup
fish: Unknown command: neofetch
~/.config/fish/config.fish (line 154): 
neofetch
^
from sourcing file ~/.config/fish/config.fish
called during startup
fish: Unknown command: uname
/usr/share/fish/functions/__fish_pwd.fish (line 1): 
uname
^
in command substitution
called on line 1 of file /usr/share/fish/functions/__fish_pwd.fish
from sourcing file /usr/share/fish/functions/__fish_pwd.fish
called on line 1 of file /usr/share/fish/functions/fish_title.fish
in command substitution
called on line 1 of file /usr/share/fish/functions/fish_title.fish
in command substitution
called on line 6 of file /usr/share/fish/functions/fish_title.fish
in function 'fish_title'
in command substitution
/usr/share/fish/functions/__fish_pwd.fish (line 1): Unknown error while evaluating command substitution
switch (uname)
^
from sourcing file /usr/share/fish/functions/__fish_pwd.fish
called on line 1 of file /usr/share/fish/functions/fish_title.fish
in command substitution
called on line 1 of file /usr/share/fish/functions/fish_title.fish
in command substitution
called on line 6 of file /usr/share/fish/functions/fish_title.fish
in function 'fish_title'
in command substitution
fish: Unknown command: __fish_pwd
/usr/share/fish/functions/fish_title.fish (line 1):
__fish_pwd
^
in command substitution
called on line 6 of file /usr/share/fish/functions/fish_title.fish
in function 'fish_title'
in command substitution
/usr/share/fish/functions/fish_title.fish (line 6): Unknown error while evaluating command substitution
echo (set -q argv[1] && echo $argv[1] || status current-command) (__fish_pwd)
^
in function 'fish_title'
in command substitution

I fixed it by removing the commands from .profile using dolphin by typing $HOME/.profile in the path

But that begs the question of where am I suppose to add such commands?

For Fish, https://fishshell.com/docs/current/tutorial.html#startup-where-s-bashrc

Also keep in mind that this isn't really a "how do I Linux?" forum.

4 Likes

Perhaps you might want to get on that.

4 Likes

Is this what Go developers suggest?
Have you asked them about your issue?

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.