fork/fish-shell

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

Johannes AltmanningerMerge changes to config paths6d0cd3d9b

master
1.2 KiB29 linesraw
1# localization: skip(private)
2function __fish_theme_freeze
3    set -l data_source $argv[1]
4    set -l theme_data $argv[2..]
5    set -l relative_path conf.d/fish_frozen_theme.fish
6    __fish_backup_config_files $relative_path
7
8    set -l help_section interactive#syntax-highlighting
9    status get-file help_sections | string match -q $help_section
10    or echo "fish: internal error: missing help section '$help_section'"
11
12    mkdir -p -- (path dirname -- $__fish_config_dir/conf.d)
13    printf >$__fish_config_dir/$relative_path %s\n \
14        $(test $data_source = __fish_theme_migrate &&
15            echo "\
16# This file was created by fish when upgrading to version 4.3, to migrate
17# theme variables from universal to global scope.") \
18        "\
19# Don't edit this file, as it will be written by the web-config tool (`fish_config`).
20# To customize your theme, delete this file and see
21#     help $help_section
22# or
23#     man fish-interactive | less +/^SYNTAX.HIGHLIGHTING
24# for appropriate commands to add to ~/.config/fish/config.fish instead." \
25        $(test $data_source = __fish_theme_migrate &&
26            echo '# See also the release notes for fish 4.3.0 (run `help relnotes`).') \
27        "" \
28        'set --global '$theme_data
29end