Skip to content

Instantly share code, notes, and snippets.

@yszk0123
Created January 18, 2017 00:46
Show Gist options
  • Save yszk0123/13f8f92dffacbdbafd430384f1503501 to your computer and use it in GitHub Desktop.
Save yszk0123/13f8f92dffacbdbafd430384f1503501 to your computer and use it in GitHub Desktop.
デフォルトでないディレクトリに Atom の設定ファイルを置く方法 (複数の Atom を使い分ける方法)
  1. ディレクトリ DIR を作成
  2. start.command を DIR に配置
  3. ホームページから Atom をダウンロードして Atom.app を DIR に配置
  4. DIR を Finder で開いて start.command をダブルクリック (ターミナルから start.command を叩いても OK)
  5. 正常に実行された場合は DIR 直下に .atom フォルダが作成される
#!/bin/bash -e
script_dir="$(cd $(dirname $0); pwd)"
ATOM_HOME="$script_dir/.atom" open "$script_dir/Atom.app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment