Last active
November 29, 2021 08:22
-
-
Save ryotako/3734afed5c0998fcebaedfbf7ea292ae to your computer and use it in GitHub Desktop.
るびきちさんの「全訳!fishシェル普及計画」を引くコマンド
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function help-ja --description 'Show Japanese help for the fish shell' | |
set -l topics (builtin -n) tutorial document-ja faq-ja design-document-ja | |
set -l home 'http://fish.rubikitch.com' | |
switch "$argv[1]" | |
case -h --h --he --hel --help | |
echo 'Usage: help-ja [TOPIC]' | |
case $topics | |
open "$home/$argv[1]" | |
case '*' | |
open $home | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment