在终端中获取垃圾字符

KD。

因此,我刚刚重新安装了Mac,并设置了iTerm和fish shell。我也安装了oh-my-fish。但是不知何故,这个未知的角色一直卡在我的终端上。我如何将其删除。我尝试重新安装fish和iterm,但没有运气。

在此处输入图片说明

更新:按照要求输出fishk_prompt:

fish_prompt is a function with definition
function fish_prompt
    # Cache exit status
    set -l last_status $status

    # Just calculate these once, to save a few cycles when displaying the prompt
    if not set -q __fish_prompt_hostname
        set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
    end
    if not set -q __fish_prompt_char
        switch (id -u)
            case 0
                set -g __fish_prompt_char '#'
            case '*'
                set -g __fish_prompt_char 'λ'
        end
    end

    # Setup colors
    #use extended color pallete if available
    #if [[ $terminfo[colors] -ge 256 ]]; then
    #    turquoise="%F{81}"
    #    orange="%F{166}"
    #    purple="%F{135}"
    #    hotpink="%F{161}"
    #    limegreen="%F{118}"
    #else
    #    turquoise="%F{cyan}"
    #    orange="%F{yellow}"
    #    purple="%F{magenta}"
    #    hotpink="%F{red}"
    #    limegreen="%F{green}"
    #fi
    set -l normal (set_color normal)
    set -l white (set_color FFFFFF)
    set -l turquoise (set_color 5fdfff)
    set -l orange (set_color df5f00)
    set -l hotpink (set_color df005f)
    set -l blue (set_color blue)
    set -l limegreen (set_color 87ff00)
    set -l purple (set_color af5fff)

    # Configure __fish_git_prompt
    set -g __fish_git_prompt_char_stateseparator ' '
    set -g __fish_git_prompt_color 5fdfff
    set -g __fish_git_prompt_color_flags df5f00
    set -g __fish_git_prompt_color_prefix white
    set -g __fish_git_prompt_color_suffix white
    set -g __fish_git_prompt_showdirtystate true
    set -g __fish_git_prompt_showuntrackedfiles true
    set -g __fish_git_prompt_showstashstate true
    set -g __fish_git_prompt_show_informative_status true

    # Line 1
    echo -n $white'╭─'$hotpink$USER$white' at '$orange$__fish_prompt_hostname$white' in '$limegreen(pwd)$turquoise
    __fish_git_prompt " (%s)"
    echo

    # Line 2
    echo -n $white'╰─'$__fish_prompt_char $normal
end
法霍

如果您的意思是“ [I]”,那就是vi模式指示器。您正在使用vi绑定,如果您不知道自己所处的模式,这些绑定可能会令人困惑,因此默认情况下启用此功能。如果要禁用它,请添加

function fish_mode_prompt; end

您的配置。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

ESP8266 从字符数组中获取垃圾数据

来自分类Dev

在ssh终端中单击会在tmux之后导致“垃圾”字符[0; 83; 32M0]

来自分类Dev

使用C和Python在终端中获取随机字符

来自分类Dev

cassandra行获取会产生垃圾字符

来自分类Dev

终端中的特殊字符

来自分类Dev

如何在python中获取垃圾值

来自分类Dev

PHP从字符串中删除垃圾

来自分类Dev

如何摆脱这个程序中的垃圾字符?

来自分类Dev

C-输出中的垃圾字符

来自分类Dev

从外部文件中删除多余的垃圾字符

来自分类Dev

PHP从字符串中删除垃圾

来自分类Dev

python中的beautifulsoup解析错误-垃圾字符

来自分类Dev

在Vim的终端中获取列

来自分类Dev

从终端输出中获取多行

来自分类Dev

获取终端中的光标颜色

来自分类Dev

终端中奇怪的字符重叠

来自分类Dev

解码终端中打印的字符

来自分类Dev

如何直接在终端中获取字符串的MD5哈希?

来自分类Dev

如何直接在终端中获取字符串的MD5哈希?

来自分类Dev

在某些字符串的末尾获取垃圾值

来自分类Dev

在openCV中访问mat中的元素时获取垃圾值

来自分类Dev

BASH从子终端在父终端中获取错误代码?

来自分类Dev

避免使用先前终端命令中的终端字符

来自分类Dev

C、读取文本文件时字符串中的垃圾/垃圾值

来自分类Dev

在Node.js中获取终端的宽度

来自分类Dev

使用golang在Windows中获取终端宽度

来自分类Dev

在OSX终端中获取git颜色

来自分类Dev

从终端中的视频获取元数据

来自分类Dev

是否可以从终端中的网站获取文本