Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No color output Ubuntu 24 fish with starship prompt #9

Open
vepain opened this issue Oct 16, 2024 · 1 comment
Open

No color output Ubuntu 24 fish with starship prompt #9

vepain opened this issue Oct 16, 2024 · 1 comment

Comments

@vepain
Copy link

vepain commented Oct 16, 2024

I tested your fish plugin on Ubuntu 22 and Ubuntu 24.
The only thing that seems different is their respective version of starship prompt (same terminal app with same profile configuration.

For Ubuntu 22.04

> starship --version
starship 1.17.1

For Ubuntu 24.04

> starship --version
starship 1.20.1

Both Ubuntu 22 and 24 output:

> fish --version
fish, version 3.7.1
> fisher --version
fisher, version 4.4.5
> functions man
# Defined in /home/profchep/.config/fish/functions/man.fish @ line 1
function man --description 'Run man with added colors'
    set --local --export MANPATH $MANPATH

    # special case for NetBSD and FreeBSD: set MANPATH if not already set
    # see https://github.com/fish-shell/fish-shell/blob/555af37616893160ad1afb208a957d6a01a7a315/share/functions/man.fish#L15
    if test -z "$MANPATH"
        if set path (command man -p 2>/dev/null)
            set MANPATH (string replace --regex '[^/]+$' '' $path)
        else
            set MANPATH ""
        end
    end

    # prepend the directory of fish manpages to MANPATH
    set fish_manpath $__fish_data_dir/man
    if test -d $fish_manpath
        set --prepend MANPATH $fish_manpath
    end

    cless (command --search man) $argv
end
> functions cless
# Defined in /home/profchep/.config/fish/functions/cless.fish @ line 1
function cless --description 'Configure less to colorize styled text using environment variables before executing a command that will use less'
    set -x LESS_TERMCAP_md (set_color --bold 0280A5) # start bold
    set -x LESS_TERMCAP_me (set_color normal) # end bold
    set -x LESS_TERMCAP_us (set_color --underline 5BA502) # start underline
    set -x LESS_TERMCAP_ue (set_color normal) # end underline
    set -x LESS_TERMCAP_so (set_color --reverse F0CB02) # start standout
    set -x LESS_TERMCAP_se (set_color normal) # end standout

    $argv
end
> echo $PAGER
@vepain
Copy link
Author

vepain commented Oct 16, 2024

Note that decors/fish-colored-man works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant