I want to open sublime text by just typing a certain word in the terminal


  • | 691 points

    In a specific folder, where my working directory is specified. I just want to open sublime/notepad++ by typing a certain word like sublime or subl . just like in Linux. How would I do that in cmder ?


  • administrators
    | 66720 points

    @abrhambas02 : You can use alias. Currently, to open Notepad++, you can type:

    e
    

    or

    notepad++
    

  • | 893 points

    There are two ways to solve this problem:

    • copy subl.exe from sublime installed path "C:\Program Files\Sublime Text 3"
      to system32 folder

    • or add sublime installed path "C:\Program Files\Sublime Text 3" to systems path

    How can I add a new folder to my system path?


  • | 769 points

    C:\laragon\www\mix
    λ alias
    Use /? for help

    art=php artisan $*
    cd~=cd %HOMEPATH%
    clear=cls
    clink="C:\laragon\bin\cmder\vendor\clink/clink_x64.exe" --cfgdir "C:\laragon\bin\cmder\config" $*
    cmderr=cd /d "%CMDER_ROOT%"
    e.=explorer .
    e=notepad++ $*
    gl=git log --oneline --all --graph --decorate $*
    history=cat "%CMDER_ROOT%\config.history"
    ll=ls -gohlat --show-control-chars -F --color $*
    ls=ls --show-control-chars -F --color $*
    nodejs=node $*
    pwd=cd
    subl="C:\Program Files\Sublime Text 3\sublime_text" $*
    t=vendor\bin\phpunit
    unalias=alias /d $1
    vi=vim $*
    wget=curl -OL $*


Log in to reply
 

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