0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

fish shellのfunctionで環境変数を設定する

Posted at

やること

fishのfunctionで環境変数を設定する

背景

プロキシを介したり、介さなかったり、そのときの状況で変わるので、https_proxyの設定を簡単に行うために、functionで解決しようとした。

環境

Git for windowsにMSYS2を適用してpacmanでfishをインストールしている。

やること

functionを作る

function proxy
    export HTTPS_PROXY=〇〇〇
end

プロキシを使うとき

proxy

ポイント

setではできなかった。exportだとできる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?