fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningerfish_config: extract some functions for reading theme files697afdefe

master
303 B11 linesraw
1# localization: skip(private)
2function __fish_theme_names
3    set -l unique
4    for name in (__fish_theme_paths $argv |
5            string replace -r '.*/([^/]*).theme$' '$1')
6        if not contains -- $name $unique
7            set -a unique $name
8        end
9    end
10    string join \n -- $unique
11end