diff --git a/contrib/clion/pixi/pixi-default.bash b/contrib/clion/pixi/pixi-default.bash new file mode 100755 index 0000000000..b14ef9cd8c --- /dev/null +++ b/contrib/clion/pixi/pixi-default.bash @@ -0,0 +1,10 @@ +#!/bin/bash + +# Change to the directory of this script (any subdirectory in the repository should work) +cd "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" + +# If the line above does not work then try uncommenting the line below and insert the absolute path to your FreeCAD repository +# cd "absolute/path/to/FreeCAD" + +# Activate pixi default environment +eval "$(pixi shell-hook)" diff --git a/contrib/clion/pixi/pixi-default.bat b/contrib/clion/pixi/pixi-default.bat new file mode 100644 index 0000000000..559711a83f --- /dev/null +++ b/contrib/clion/pixi/pixi-default.bat @@ -0,0 +1,10 @@ +@echo off +REM Change to the directory of this script (any subdirectory in the repository should work) +cd /d "%~dp0" + +REM Activate pixi default environment +REM Write the output of pixi shell-hook to a temporary batch file and execute it +set TEMP_BATCH_FILE=%TEMP%\pixi_shell_hook_freecad.bat +pixi shell-hook > "%TEMP_BATCH_FILE%" +call "%TEMP_BATCH_FILE%" +del "%TEMP_BATCH_FILE%" \ No newline at end of file