text install_fish_elm_completions.fish

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text install_fish_elm_completions.fish相关的知识,希望对你有一定的参考价值。

#!/usr/local/bin/fish
begin
  set fish_completions_dir ~/.config/fish/completions
  set elm_tools 'make' 'package' 'reactor' 'repl' 'test'

  function verify_completions_dir
    if test -d $fish_completions_dir
      echo "=> Using existing completions dir $fish_completions_dir..."
    else
      echo "=> Creating $fish_completions_dir ..."
      mkdir -p $fish_completions_dir
    end
  end

  function install_elm_completions
    for tool in $elm_tools
      set -l t "elm-$tool.fish"

      echo "=> Installing $t..."
      curl -o "$fish_completions_dir/$t" "https://raw.githubusercontent.com/ohanhi/fish-elm-completions/master/$t"

      print_success_msg "$t completions installed √"
    end

    print_success_msg "=> Installation complete! √"
  end

  function print_success_msg
    set_color green
    echo $argv
    set_color normal
  end

  function main
    if which curl > /dev/null
      verify_completions_dir
      install_elm_completions
    else
      echo "=> Dependency Error: please install curl and then try again."
    end
  end

  main
end

以上是关于text install_fish_elm_completions.fish的主要内容,如果未能解决你的问题,请参考以下文章

VB中 如何复制Text1.text的字体到剪贴板? 如何剪切?

VB 加减乘除

text-decoration:[ text-decoration-line ] || [ text-decoration-style ] || [ text-decoration-color ]

.text 和 .get_text() 之间的区别

javascript或css:如何隐藏标签内的文本中的任何数字,后跟点前缀“1.text”,“2.text”...“30.text”

Crystal报告如果这个或那个那么this2