项目作者: rossy

项目描述 :
Launch Sublime Text from Cygwin
高级语言: Shell
项目地址: git://github.com/rossy/cyg-subl.git
创建时间: 2014-07-30T06:50:08Z
项目社区:https://github.com/rossy/cyg-subl

开源协议:

下载


cyg-subl translates Cygwin paths to native Windows paths, so you can launch
Sublime Text as if it was any other Cygwin editor.

Installation

Run:

  1. $ git clone https://github.com/rossy2401/cyg-subl.git
  2. $ cd cyg-subl
  3. $ make install

As long as Sublime Text is installed, there is no need for configuration. The
location of the sublime_text binary is determined from the registry.

Usage

To open file.txt for editing:

  1. $ subl file.txt

To create file.txt with properly set Cygwin permissions and the current
umask:

  1. $ subl --touch file.txt

To open file.txt and always detach Sublime Text from the terminal:

  1. $ subl --cygstart file.txt

To use Sublime Text to edit a git commit message:

  1. $ export VISUAL='subl --launch --wait'
  2. $ git commit

To set up an alias for quickly opening files:

  1. $ alias s='subl --touch --cygstart --'
  2. $ s *.txt

Copying

To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.

CC0