"Quick add" add some program to PATH


  • | 148 points

    Example to run Sublime Text in CMD / PowerShell / Bash Terminal
    No need to add Path anymore, hell ye!

    %laragon_root%user\bin\subl.cmd

    #!/usr/bin/env bash
    
    SUBLIME_PATH="$(dirname \"$(realpath\ "$0\")\")"
    SUBLIME_PATH="$(dirname \"$SUBLIME_PATH\")"
    SUBLIME_PATH="$(dirname \"$SUBLIME_PATH\")"
    SUBLIME_PATH=""$SUBLIME_PATH"/bin/sublime"
    
    "$SUBLIME_PATH/subl.exe" "$@"
    

    %laragon_root%user\bin\subl.cmd

    @echo off
    setlocal
    set SUBLIME_PATH=%~dp0\..\..\bin\sublime
    call "%SUBLIME_PATH%\subl.exe" %*
    endlocal
    exit 1
    

Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.