Skip to content

Instantly share code, notes, and snippets.

@ryotako
Last active November 29, 2021 08:22
Show Gist options
  • Save ryotako/3734afed5c0998fcebaedfbf7ea292ae to your computer and use it in GitHub Desktop.
Save ryotako/3734afed5c0998fcebaedfbf7ea292ae to your computer and use it in GitHub Desktop.
るびきちさんの「全訳!fishシェル普及計画」を引くコマンド
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