Jump to content

El Capitan


MarisO
 Share

Recommended Posts

vai jūs to jau ieinstalējāt?    ir labāka?

 

vai tur atkal nav mainīts veids,  ka var uzlikt globālos env variabļus ?

#!/bin/bash

cp ~/.emacs.d/dot-files/login-script.sh ~
cp ~/.emacs.d/dot-files/com.user.loginscript.plist ~/Library/LaunchAgents/

launchctl load ~/Library/LaunchAgents/com.user.loginscript.plist
launchctl start com.user.loginscript


maris:dot-files/ (master✗) $ cat com.user.loginscript.plist                                   
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Label</key>
   <string>com.user.loginscript</string>
   <key>Program</key>
   <string>/Users/maris/login-script.sh</string>
   <key>RunAtLoad</key>
   <true/>
    <key>StandardOutPath</key>
    <string>/tmp/login-script.log</string>
    <key>StandardErrorPath</key>
    <string>/tmp/login-script.log</string>
</dict>
</plist>

cat login-script.sh                                                                       

#!/bin/bash
launchctl setenv EMACS_DEFAULT_THEME tomorrow-night-eighties
launchctl setenv EMACS_DEFAULT_FONT Menlo-16

launchctl setenv JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8/Contents/Home
Edited by MarisO
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...