lemnos / theme.sh

A script which lets you set your $terminal theme.
Other
912 stars 45 forks source link

Fish shell config #31

Closed hegga closed 2 years ago

hegga commented 2 years ago

In case you would like to provide a default config for Fish shell users as well:

if type -q theme.sh
    if test -e ~/.theme_history
        theme.sh (theme.sh -l|tail -n1)
    end

    # Optional

    # Bind C-o to the last theme.
    function last_theme
        theme.sh (theme.sh -l|tail -n2|head -n1)
    end

        bind \co last_theme

    alias th='theme.sh -i'

    # Interactively load a light theme
    alias thl='theme.sh --light -i'

    # Interactively load a dark theme
    alias thd='theme.sh --dark -i'

end
lemnos commented 2 years ago

Thanks :). Feel free to submit a PR, otherwise I am happy to add it to the README for you.

hegga commented 2 years ago

Created PR https://github.com/lemnos/theme.sh/pull/33

gitscosh commented 2 years ago

Where would you put this? config.fish?

lemnos commented 2 years ago

Merged