fishのコマンドまとめ

fishで設定ファイルを書き換えたい時のパスの場所

1
~/.config/fish/config.fish

fishでpathを通す

1
set -U fish_user_paths <追加したいパス> $fish_user_paths

参考: https://qiita.com/ledsun/items/8ca1a450b21c8ebc9670

[invalid variable nameと言われた時]

1
2
3
4

yuunag1~/workspace/life-voyage/cli(git✱≠main)❱✔≻ set -U fish_user_paths /Users/yuunag1/go/bin $fish_user_paths

set: fish_user_paths /Users/yuunag1/go/bin /Users/yuunag1/development/flutter/bin: invalid variable name. See `help identifiers`

解決策:

次のように入力し直す

1
set -U fish_user_paths $fish_user_paths /Users/yuunag1/go/bin

$fish_user_pathsを前に持ってくることで後続に追加されるっぽい

fishで環境変数を設定する

1
set -Ux NAME_OF_ENVIRONMENT_VARIABLE value_of_environment_variable

参考: https://zenn.dev/t4aru/articles/aed6dc4312b28f

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy