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

  • | 927 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
    | 112691 points

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




  • | 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

    λ alias
    Use /? for help

    art=php artisan $*
    cd~=cd %HOMEPATH%
    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 $*
    subl="C:\Program Files\Sublime Text 3\sublime_text" $*
    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.