vdenv 0.1.0
dotnet tool install --global vdenv --version 0.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local vdenv --version 0.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=vdenv&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package vdenv --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
vdenv
vdenvは仮想デスクトップごとに環境変数およびプロファイルを切り替えるためのdotnetツールです。
インストール
dotnet tool install -g vdenv
使用方法
ターミナル起動時に以下のように引数を渡します:
cmd.exe /k for /f "delims=" %f in ('vdenv') do @call "%f"
その他の基本的なコマンド:
vdenv init
設定ファイルの初期化を行い、デスクトップ毎の設定を作成します。vdenv config
現在のデスクトップの設定内容を表示します。vdenv config open
設定ファイルをエディタで開きます。
設定ファイル (vdenv.yaml)
vdenvはユーザープロファイル直下の vdenv.yaml
を参照します。
設定例:
desktops:
90e9c8af-e2e9-44e5-8289-7f8d8fb55e21: # 仮想デスクトップの内部管理ID
exists: true # デスクトップが存在するかのフラグ (true/false)
env: {} # 環境変数のキーと値のペア。例: { "PATH": "C:\\path", "VAR": "value" }
envPath: "" # 環境変数を定義した.envファイルへのパス。空の場合は無視されます。
profilePath: "" # ログイン時に実行するスクリプト/バッチファイルのパス。空の場合は無視されます。
startDir: "" # 初期作業ディレクトリ。例: "C:\\Users\\UserName"
# ...その他のデスクトップ設定...
各項目の詳細:
exists:
init
コマンドによって自動的に設定されるフラグです。デスクトップが存在するかどうかを示します。env:
各デスクトップ固有の環境変数を定義します。キーが環境変数名、値がその設定値となります。envPath:
環境変数を一覧定義する外部の.envファイルのパスを指定します。指定がなければ無視されます。profilePath:
ユーザーの初期化スクリプト (例: CMD/バッチファイル) のパスを指定します。指定された場合、ログイン時等に自動実行されます。startDir:
作業開始ディレクトリを記載します。設定がある場合、起動時にそのディレクトリへ移動します。
ライセンス
このプロジェクトは MIT License の下でライセンスされています。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.1.0 | 108 | 2/9/2025 |
0.1.0-ci.33 | 52 | 2/9/2025 |
0.1.0-ci.31 | 35 | 2/9/2025 |
0.1.0-ci.30 | 43 | 2/9/2025 |
0.1.0-ci.29 | 46 | 2/9/2025 |
0.1.0-ci.28 | 53 | 2/9/2025 |
0.1.0-ci.27 | 48 | 2/9/2025 |