Update cd-to-terminal from 2.6.0 to 3.0 (#70441)

* Update cd-to-terminal from 2.6.0 to 3.0

* Update and rename cd-to-terminal.rb to cd-to.rb
This commit is contained in:
CoreCode 2019-10-10 02:06:48 +02:00 committed by Vítor Galvão
parent 42ba859db0
commit 8b112f7dc5
2 changed files with 19 additions and 22 deletions

View File

@ -1,22 +0,0 @@
cask 'cd-to-terminal' do
version '2.6.0'
sha256 'a92def521d332a373f655a41338d0ec18dfaa6e24eb9ec2ca6df281398db3d46'
url "https://github.com/jbtule/cdto/releases/download/#{version.dots_to_underscores}/cdto_#{version.major_minor.dots_to_underscores}.zip"
appcast 'https://github.com/jbtule/cdto/releases.atom'
name 'cd to'
homepage 'https://github.com/jbtule/cdto'
# Renamed to avoid conflict with cd-to-iterm.
app "cdto_#{version.major_minor.dots_to_underscores}/terminal/cd to.app", target: 'cd to terminal.app'
caveats <<~EOS
To complete installation:
1. Open the the Applications folder in finder.
2. Drag "cd to.app" onto the Finder toolbar while holding down the command() and option() keys.
To use, just click on the new button and instantly opens a new Terminal.app window.
Only "cd to.app" for Terminal.app has been added to the Applications folder. The iTerm and x11_term versions are also staged.
EOS
end

19
Casks/cd-to.rb Normal file
View File

@ -0,0 +1,19 @@
cask 'cd-to' do
version '3.0'
sha256 'ced82da81b9b3448280b5c465c6649c93a876895de0142a396efca489c7b59b6'
url "https://github.com/jbtule/cdto/releases/download/v#{version}/cdto_#{version.dots_to_underscores}.zip"
appcast 'https://github.com/jbtule/cdto/releases.atom'
name 'cd to'
homepage 'https://github.com/jbtule/cdto'
app 'cd to ....app'
caveats <<~EOS
To complete installation:
1. Open the the Applications folder in finder.
2. Drag "cd to ....app" onto the Finder toolbar while holding down the command() and option() keys.
To use, just click on the new button and instantly opens a new Terminal.app window.
EOS
end