コマンド¶
これは fish に付属しているすべてのコマンドのリストです。
大まかに言えば、これらはいくつかのカテゴリに分類されます。
キーワード¶
構文を構成する言語の中核となるキーワードです。以下のようなものがあります。
ツール¶
タスクを実行するためのビルトインです。以下のようなものがあります。
カレントディレクトリを変更するための cd 。
出力を色付けするための set_color 。
変数の設定、照会、消去を行うための set 。
入力を読み取るための read 。
文字列操作のための string 。
パスのフィルタリングやコンポーネントの処理を行うための path 。
算術計算を行うための math 。
引数の処理を容易にするための argparse 。
引数をカウントするための count 。
fish が呼び出すものが何の種類(コマンド、ビルトイン、関数)なのか、あるいはそもそも存在するのかを確認するための type 。
ファイルが存在するか、文字列が空かといった条件を確認するための test 。
リストにエントリが含まれているかを確認するための contains 。
対話型かログインシェルか、現在どのファイルを実行しているかといったシェルの情報を取得するための status 。
略語(abbreviations) を管理するための abbr 。
キーバインドを変更するための bind 。
補完(completions) を管理するための complete 。
コマンドラインの内容を取得または変更するための commandline 。
プロンプトやカラースキームなど、 fish の設定を簡単に変更するための fish_config 。
乱数を生成したり、リストから要素を選択したりするための random 。
既知の関数¶
「既知の関数」はカスタマイズのポイントです。これらを変更することで、 fish の挙動を変えることができます。これには以下が含まれます。
プロンプトを表示するための fish_prompt 、 fish_right_prompt 、 fish_mode_prompt 。
コマンドが見つからないときに何をすべきかを fish に指示するための fish_command_not_found 。
ターミナルのタイトルを変更するための fish_title 。
ターミナルのタブのタイトルを変更するための fish_tab_title 。
fish の起動時に挨拶を表示するための fish_greeting 。
コマンドを履歴に追加すべきかどうかを決定するための fish_should_add_to_history 。
ヘルパー関数¶
主にプロンプトで使用するための情報を提供するヘルパー関数です。
現在の git 、 mercurial リポジトリに関する情報を表示するための fish_git_prompt と fish_hg_prompt 。
いずれかの VCS に関する情報を表示するための fish_vcs_prompt 。
現在の svn リポジトリに関する情報を表示するための fish_svn_prompt 。
終了ステータスからシグナル名を取得するための fish_status_to_signal 。
カレントディレクトリを適切にフォーマット・短縮して表示するための prompt_pwd 。
現在のログイン状況(ユーザー、ホスト名、chroot 内か ssh 経由かなど)を表示するための prompt_login 。
プロンプトで使用するために短縮されたホスト名を取得するための prompt_hostname 。
現在のユーザーが root のような管理者ユーザーかどうかを確認するための fish_is_root_user 。
$PATH に簡単にパスを追加するための fish_add_path 。
ラッパー関数(「エイリアス」)を素早く定義するための alias 。
デフォルト設定から何を変更したかを表示するための fish_delta 。
他のシェルとの互換性のための export 。
ヘルパーコマンド¶
fish は、外部から簡単に呼び出せるように、いくつかの機能を外部コマンドとしても提供しています。
これには、 fish コードを整形するための fish_indent や、キー入力が生成するエスケープシーケンスを表示するための fish_key_reader が含まれます。
全リスト¶
以下が全リストです。
- _ - fishの翻訳を呼び出す
- abbr - fish の省略形(abbreviation)を管理する
- alias - エイリアスを作成する
- and - 条件付きでコマンドを実行する
- argparse - fishスクリプトまたは関数に渡されたオプションを解析
- begin - コードブロックを開始する
- bg - ジョブをバックグラウンドに送る
- bind - fish のキーバインドを扱う
- block - イベントの配信を一時的にブロックする
- break - stop the current inner loop
- breakpoint - デバッグモードの起動
- builtin - 組み込みコマンドを実行する
- case - 条件に応じてコマンドブロックを実行する
- cd - change directory
- cdh - change to a recently visited directory
- command - プログラムの実行
- commandline - 現在のコマンドラインバッファを取得、設定する
- complete - コマンドのタブ補完を編集する
- contains - リスト内に特定の単語が存在するかテストする
- continue - skip the remainder of the current iteration of the current inner loop
- count - リストの要素数を数える
- dirh - ディレクトリ履歴を表示する
- dirs - ディレクトリスタックを表示する
- disown - remove a process from the list of jobs
- echo - テキストを表示する
- else - execute command if a condition is not met
- emit - 汎用イベントを発生させる
- end - end a block of commands
- eval - evaluate the specified commands
- exec - 現在のプロセスでコマンドを実行する
- exit - exit the shell
- export - 変数をエクスポートする互換関数
- false - return an unsuccessful result
- fg - bring job to foreground
- fish - フレンドリーな対話型シェル
- fish_add_path - PATHにディレクトリを追加する
- fish_breakpoint_prompt - ブレークポイントで停止した時のプロンプトを定義する
- fish_clipboard_copy - copy text to the system's clipboard
- fish_clipboard_paste - get text from the system's clipboard
- fish_command_not_found - what to do when a command wasn't found
- fish_config - start the web-based configuration interface
- fish_default_key_bindings - fish に Emacs キーバインドを設定する
- fish_delta - 関数や補完設定をデフォルトと比較する
- fish_git_prompt - output git information for use in a prompt
- fish_greeting - display a welcome message in interactive shells
- fish_hg_prompt - output Mercurial information for use in a prompt
- fish_indent - インデンター、コード整形ツール
- fish_is_root_user - check if the current user is root
- fish_key_reader - explore what characters keyboard keys send
- fish_mode_prompt - define the appearance of the mode indicator
- fish_opt - argparse コマンド用のオプション仕様を作成する
- fish_prompt - define the appearance of the command line prompt
- fish_right_prompt - define the appearance of the right-side command line prompt
- fish_should_add_to_history - 履歴にコマンドを追加するかを決定
- fish_status_to_signal - convert exit codes to human-friendly signals
- fish_svn_prompt - output Subversion information for use in a prompt
- fish_tab_title - define the terminal tab's title
- fish_title - define the terminal's title
- fish_update_completions - update completions using manual pages
- fish_vcs_prompt - output version control system information for use in a prompt
- fish_vi_key_bindings - set vi key bindings for fish
- for - perform a set of commands multiple times
- funced - edit a function interactively
- funcsave - save the definition of a function to the user's autoload directory
- function - create a function
- functions - print or erase functions
- help - display fish documentation
- history - コマンド履歴の表示と操作
- if - 条件に応じてコマンドを実行する
- isatty - test if a file descriptor is a terminal
- jobs - print currently running jobs
- math - 数学計算を実行する
- nextd - move forward through directory history
- not - negate the exit status of a job
- open - デフォルトのアプリケーションでファイルを開く
- or - conditionally execute a command
- path - manipulate and check paths
- popd - move through directory stack
- prevd - move backward through directory history
- printf - display text according to a format string
- prompt_hostname - print the hostname, shortened for use in the prompt
- prompt_login - describe the login suitable for prompt
- prompt_pwd - print pwd suitable for prompt
- psub - perform process substitution
- pushd - push directory to directory stack
- pwd - output the current working directory
- random - generate random number
- read - read line of input into variables
- realpath - convert a path to an absolute path without symlinks
- return - stop the current inner function
- set - シェル変数の表示と変更
- set_color - set the terminal color
- source - evaluate contents of file
- status - fish の実行時情報を照会する
- string - 文字列を操作する
- string-collect - join strings into one
- string-escape - escape special characters
- string-join - join strings with delimiter
- string-join0 - join strings with zero bytes
- string-length - print string lengths
- string-lower - convert strings to lowercase
- string-match - match substrings
- string-pad - pad strings to a fixed width
- string-repeat - multiply a string
- string-replace - replace substrings
- string-shorten - shorten strings to a width, with an ellipsis
- string-split - split strings by delimiter
- string-split0 - split on zero bytes
- string-sub - extract substrings
- string-trim - remove trailing whitespace
- string-unescape - expand escape sequences
- string-upper - convert strings to uppercase
- suspend - 現在のシェルを一時停止する
- switch - 条件に応じてコマンドブロックを実行
- test - perform tests on files and text
- time - measure how long a command or block takes
- trap - perform an action when the shell receives a signal
- true - return a successful result
- type - locate a command and describe its type
- ulimit - set or get resource usage limits
- umask - set or get the file creation mode mask
- vared - interactively edit the value of an environment variable
- wait - wait for jobs to complete
- while - perform a set of commands multiple times
