fish-shell

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
fish-shell [2020/10/26 12:29] mumeiyamibitofish-shell [2023/05/12 15:15] (現在) – [rsync や scp で fish をインストールしたリモートサーバにファイルを転送できない (旧方法)] mumeiyamibito
行 37: 行 37:
 </code> </code>
     - .bashrc の末尾に追記する。\\ <code bash>     - .bashrc の末尾に追記する。\\ <code bash>
-if [ "$SSH_TTY" != "" ]; thenBOOT_FISH=1+if [ "$SSH_TTY" != "" ]; then 
 + BOOT_FISH=1
  FISH_PATH=$HOME/local/bin/fish  FISH_PATH=$HOME/local/bin/fish
  if [ $BOOT_FISH -eq 1 ]; then  if [ $BOOT_FISH -eq 1 ]; then
行 293: 行 294:
  
  
 +==== ハイフンの入った文字列の置換ができない ====
 +  * 問題: ''string replace'' でハイフンの入ったパターンを置換できない。
 +  * 解決策: ''replace'' の後に ''--'' (ハイフン 2 つ) を入れる。
 +    * 例: <code bash>
 +$ string replace -- '-min' '' 'hoge-min.js'
 +hoge.js
 +</code>
 +
 +  * 参考サイト: [[https://github.com/fish-shell/fish-shell/issues/3416 | string command fails if input starts with a dash · Issue #3416 · fish-shell/fish-shell · GitHub]]
 ===== 参考サイト ===== ===== 参考サイト =====
   * [[http://fish.rubikitch.com/document-ja/ | fish2.4日本語ドキュメント:すぐ使える25の便利機能と実例]]   * [[http://fish.rubikitch.com/document-ja/ | fish2.4日本語ドキュメント:すぐ使える25の便利機能と実例]]
  • fish-shell.1603682999.txt.gz
  • 最終更新: 2020/10/26 12:29
  • by mumeiyamibito