vdenv 0.1.0-ci.33
This is a prerelease version of vdenv.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global vdenv --version 0.1.0-ci.33
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-ci.33
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=vdenv&version=0.1.0-ci.33&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package vdenv --version 0.1.0-ci.33
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:
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 | 111 | 2/9/2025 |
0.1.0-ci.33 | 55 | 2/9/2025 |
0.1.0-ci.31 | 38 | 2/9/2025 |
0.1.0-ci.30 | 46 | 2/9/2025 |
0.1.0-ci.29 | 49 | 2/9/2025 |
0.1.0-ci.28 | 55 | 2/9/2025 |
0.1.0-ci.27 | 51 | 2/9/2025 |