fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
6d0cd3d9b
master
1# localization: skip(private) 2function __fish_theme_freeze 3set -l data_source$argv [ 1 ] 4set -l theme_data$argv [ 2 .. ] 5set -l relative_path conf.d/fish_frozen_theme.fish 6__fish_backup_config_files $relative_path 7 8set -l help_section interactive#syntax-highlighting 9status get-file help_sections| string match -q$help_section 10or echo "fish: internal error: missing help section ' $help_section '" 11 12mkdir -p --( path dirname --$__fish_config_dir /conf.d) 13printf > $__fish_config_dir /$relative_path %s\n \ 14 $( test $data_source = __fish_theme_migrate&& 15echo "\ 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&& 26echo '# See also the release notes for fish 4.3.0 (run `help relnotes`).' ) \ 27"" \ 28'set --global ' $theme_data 29end