Erro na carga da casca do peixe iTerm2: 'function: Illegal function name' -v ''

0

Na carga iTerm2:

Last login: ... on ...
function: Illegal function name '-v'
~/.iterm2_shell_integration.fish (line 86):   function -v _ underscore_change
    if [ x$_ = xfish ]
                                              ^
from sourcing file ~/.iterm2_shell_integration.fish
    called on line 38 of file ~/.config/fish/config.fish

from sourcing file ~/.config/fish/config.fish
    called during startup

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
⋊> ~ 

~/.config/fish/config.fish:38 :

test -e {$HOME}/.iterm2_shell_integration.fish ; and source {$HOME}/.iterm2_shell_integration.fish

Versão do shell de peixe:

⋊> ~ fish -v
fish, version 2.5.0
    
por Pysis 06.06.2017 / 20:34

1 resposta

-1

Você pode inserir o seguinte comando ou usar o método mais dinâmico que faria o mesmo, ou similar, dependendo das atualizações, de:

  • Acesse o menu do aplicativo em iTerm2 > Instale a integração do shell.
  • Percorra a caixa de diálogo da pergunta do utilitário.
  • Acesse a caixa de diálogo para executar esse comando.
⋊> ~ curl -L https://iterm2.com/misc/install_shell_integration_and_utilities.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2694  100  2694    0     0  16995      0 --:--:-- --:--:-- --:--:-- 16943
Make sure you have fish 2.2 or later. Your version is:
fish, version 2.5.0
Downloading script from https://iterm2.com/misc/fish_startup.in and saving it to /Users/jsmall/.iterm2_shell_integration.fish...
Checking if /Users/jsmall/.config/fish/config.fish contains iterm2_shell_integration...
Downloading imgcat...
Downloading it2dl...
Adding aliases...
Done.
--------------------------------------------------------------------------------

The next time you log in, shell integration will be enabled.

You will also have these commands:
imgcat filename
  Displays the image inline.
it2dl filename
  Downloads the specified file, saving it in your Downloads folder.
⋊> ~
  • Recarregar iTerm2

Sem mais erros:)

Apenas um link muito pouco relacionado, mas desnecessário: GitHubGist - victor-torres / uninstall_shell_integration.sh

    
por 06.06.2017 / 20:34