저는 로그인 터미널로 Fish를 사용합니다. 안드로이드 에뮬레이터를 실행하려고합니다. bash 구성 파일을 편집하여 bash를 입력하여 bash로 전환했습니다. 컴퓨터에서 로그아웃한 후 터미널을 다시 시작했는데 아무 것도 입력할 때마다 오류가 발생했습니다.
명령: CD 데스크탑/
회신하다:
fish: Unknown command: __fish_pwd
/usr/local/share/fish/functions/fish_title.fish (line 1):
__fish_pwd
^
in command substitution
called on line 4 of file /usr/local/share/fish/functions/fish_title.fish
in function 'fish_title' with arguments 'cd\ Desktop/'
in command substitution
/usr/local/share/fish/functions/fish_title.fish: Unknown error while evaluating command substitution
in function 'fish_title' with arguments 'cd\ Desktop/'
in command substitution
fish: Unknown command: basename
~/.config/fish/functions/fish_prompt.fish (line 1):
basename (prompt_pwd)
^
in command substitution
called on line 74 of file ~/.config/fish/functions/fish_prompt.fish
in function 'fish_prompt'
in command substitution
~/.config/fish/functions/fish_prompt.fish: Unknown error while evaluating command substitution
in function 'fish_prompt'
in command substitution
fish: Unknown command: __fish_pwd
/usr/local/share/fish/functions/fish_title.fish (line 1):
__fish_pwd
^
in command substitution
called on line 4 of file /usr/local/share/fish/functions/fish_title.fish
in function 'fish_title'
in command substitution
/usr/local/share/fish/functions/fish_title.fish: Unknown error while evaluating command substitution
in function 'fish_title'
in command substitution
오류 없이 Fish 로그인 쉘로 돌아가고 싶습니다. 어떤 도움이라도 대단히 감사하겠습니다.
답변1
어떤 이유로 fish_title
함수에서 함수를 찾을 수 없습니다 __fish_pwd
. 여기에 이상한 작은 기능이 있습니다:
$ type __fish_pwd
__fish_pwd is a function with definition
# Defined in /usr/local/Cellar/fish/3.1.2/share/fish/functions/__fish_pwd.fish @ line 7
function __fish_pwd --description 'Show current path'
pwd
end
언제든지 자신의 ~/.config/fish/functions/ 디렉터리에 추가할 수 있습니다.