{"id":1529,"date":"2024-03-10T00:04:34","date_gmt":"2024-03-09T15:04:34","guid":{"rendered":"https:\/\/hi3103.net\/notes\/?p=1529"},"modified":"2024-03-10T00:39:41","modified_gmt":"2024-03-09T15:39:41","slug":"terminal-%e3%81%8b%e3%82%89-sublime-text-%e3%82%92%e8%b5%b7%e5%8b%95%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/hi3103.net\/notes\/dev\/1529","title":{"rendered":"Terminal \u304b\u3089 Sublime Text \u3092\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<ul>\n<li>Git \u3092\u6271\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u304b\u3089\u3001CUI \u3067\u306e\u64cd\u4f5c\u304c\u5897\u3048\u305f<\/li>\n<li><code>open .<\/code>  \u3067 Finder \u304c\u958b\u304f\u3088\u3046\u306b\u3001\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3067\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092 Sublime Text \u3067\u958b\u304f\u3068\u3044\u3063\u305f\u52d5\u4f5c\u3092\u3057\u305f\u304f\u306a\u3063\u305f<\/li>\n<li>\u3067\u304d\u305d\u3046\u306a\u306e\u3067\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u308b<\/li>\n<\/ul>\n<h3>\u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/h3>\n<blockquote>\n<p><a href=\"https:\/\/www.sublimetext.com\/docs\/command_line.html#mac\">Command Line Interface<\/a><br \/>\nTo use subl, the Sublime Text bin folder needs to be added to the path. For a typical installation of Sublime Text, this will be located at \/Applications\/Sublime Text.app\/Contents\/SharedSupport\/bin.<\/p>\n<\/blockquote>\n<p>\u30d1\u30b9\u3092\u901a\u3057\u3066\u3042\u3052\u308c\u3070 <code>subl<\/code>  \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3089\u3057\u3044\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u4f5c\u696d\u30ed\u30b0<\/h3>\n<h4>\u30d1\u30b9\u3092\u901a\u3059<\/h4>\n<ol>\n<li>\n<p>Terminal \u3092\u8d77\u52d5<\/p>\n<\/li>\n<li>\n<p>\u524d\u8ff0\u306e\u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b ZSH \u7528\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b<\/p>\n<pre><code class=\"language-bash\">&gt; echo 'export PATH=\"\/Applications\/Sublime Text.app\/Contents\/SharedSupport\/bin:$PATH\"' &gt;&gt; ~\/.zprofile<\/code><\/pre>\n<\/li>\n<li>\n<p><code>.zprofile<\/code> \u3092\u8aad\u307f\u8fbc\u307f\u306a\u304a\u3059\uff08\u3082\u3057\u304f\u306f Terminal \u3092\u518d\u8d77\u52d5\uff0f\u4e00\u5ea6\u9589\u3058\u3066\u958b\u304d\u76f4\u3059\uff09<\/p>\n<pre><code class=\"language-bash\">&gt; source .zprofile<\/code><\/pre>\n<\/li>\n<\/ol>\n<h4><code>subl<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u8a66\u3059<\/h4>\n<p>Terminal \u4e0a\u3067\u9069\u5f53\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210<\/p>\n<pre><code class=\"language-bash\">&gt; mkdir subl-test\n&gt; cd subl-test\n&gt; touch index.html<\/code><\/pre>\n<p>\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff08\u3053\u3053\u3067\u306f <code>index.html<\/code> \uff09\u3092\u958b\u304f\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/p>\n<pre><code class=\"language-bash\">&gt; subl index.html<\/code><\/pre>\n<p>\u7d50\u679c\u3001Sublime Text \u304c\u7acb\u3061\u4e0a\u304c\u308a\u3001\u8a72\u5f53\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u304b\u308c\u305f\u3002\u6210\u529f\uff01<\/p>\n<h4>\u4f7f\u3044\u65b9\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304f<\/h4>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4f7f\u3044\u65b9\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<pre><code class=\"language-bash\">&gt; subl --help<\/code><\/pre>\n<p>\u8868\u793a\u3055\u308c\u308b\u5185\u5bb9\u306f\u4ee5\u4e0b\u30021\u884c\u76ee\u306b\u306f\u672c\u4f53\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u304c\u51fa\u529b\u3055\u308c\u308b\u3002<\/p>\n<pre><code class=\"language-bash\">Sublime Text build 4169\n\nUsage: subl [arguments] [files]         Edit the given files\n   or: subl [arguments] [directories]   Open the given directories\n   or: subl [arguments] -- [files]      Edit files that may start with '-'\n   or: subl [arguments] -               Edit stdin\n   or: subl [arguments] - &gt;out          Edit stdin and write the edit to stdout\n\nArguments:\n  --project &lt;project&gt;:    Load the given project\n  --command &lt;command&gt;:    Run the given command\n  -n or --new-window:     Open a new window\n  --launch-or-new-window: Only open a new window if the application is open\n  -a or --add:            Add folders to the current window\n  -w or --wait:           Wait for the files to be closed before returning\n  -b or --background:     Don't activate the application\n  -s or --stay:           Keep the application activated after closing the file\n  --safe-mode:            Launch using a sandboxed (clean) environment\n  -h or --help:           Show help (this message) and exit\n  -v or --version:        Show version and exit\n\n--wait is implied if reading from stdin. Use --stay to not switch back\nto the terminal when a file is closed (only relevant if waiting for a file).\n\nFilenames may be given a :line or :line:column suffix to open at a specific\nlocation.<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 Git \u3092\u6271\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u304b\u3089\u3001CUI \u3067\u306e\u64cd\u4f5c\u304c\u5897\u3048\u305f open . \u3067 Finder \u304c\u958b\u304f\u3088\u3046\u306b\u3001\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3067\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092 Sublime Text \u3067\u958b\u304f\u3068\u3044\u3063\u305f\u52d5\u4f5c\u3092\u3057\u305f\u304f\u306a\u3063\u305f \u3067\u304d\u305d\u3046\u306a\u306e\u3067\u8a2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[64,30,15],"class_list":["post-1529","post","type-post","status-publish","format-standard","hentry","category-dev","tag-mac-os","tag-sublimetext","tag-terminal"],"_links":{"self":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/comments?post=1529"}],"version-history":[{"count":0,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1529\/revisions"}],"wp:attachment":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/media?parent=1529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/categories?post=1529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/tags?post=1529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}