Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin in multiple environments #183

Open
dmaglio opened this issue Oct 13, 2017 · 3 comments
Open

Plugin in multiple environments #183

dmaglio opened this issue Oct 13, 2017 · 3 comments

Comments

@dmaglio
Copy link

dmaglio commented Oct 13, 2017

I use this plugin in my home pc (windows) and my work pc (linux). i use Sync Settings to sync between the machine but every time i lost the path because is different between windows and linux.
as an upgrade I thought if you could have more path variables for windows and linux

@benmatselby
Copy link
Owner

@dmaglio Could you give me an example for the above please. So for Windows and Linux, what you would want to do etc.

@dmaglio
Copy link
Author

dmaglio commented Oct 28, 2017

for example:

"phpcs_windows_php_prefix_path": "c:\\xampp\\php\\bin\\php",

// It seems python/sublime cannot always find the phpcs application
// If empty, then use PATH version of phpcs, else use the set value
"phpcs_windows_executable_path": "c:\\xampp\\php\\bin\\phpcs",

// Path to where you have the php-cs-fixer installed
"phpcs_windows_fixer_executable_path": "c:\\xampp\\php\\bin\\php-cs-fixer",

"phpcs_linux_php_prefix_path": "/usr/bin/php",

// It seems python/sublime cannot always find the phpcs application
// If empty, then use PATH version of phpcs, else use the set value
"phpcs_linux_executable_path": "/usr/bin/phpcs",

// Path to where you have the php-cs-fixer installed
"phpcs_linux_fixer_executable_path": "/usr/local/bin/php-cs-fixer",

"phpcs_osx_php_prefix_path": "/usr/bin/php",

// It seems python/sublime cannot always find the phpcs application
// If empty, then use PATH version of phpcs, else use the set value
"phpcs_osx_executable_path": "/usr/bin/phpcs",

// Path to where you have the php-cs-fixer installed
"phpcs_osx_fixer_executable_path": "/usr/local/bin/php-cs-fixer",

or

"phpcs_php_prefix_path": {
	"windows": "c:\\xampp\\php\\bin\\php",
	"linux": "/usr/bin/php"
},

// It seems python/sublime cannot always find the phpcs application
// If empty, then use PATH version of phpcs, else use the set value
"phpcs_executable_path": {
	"windows": "c:\\xampp\\php\\bin\\phpcs",
	"linux": "/usr/bin/phpcs"
},

// Path to where you have the php-cs-fixer installed
"php_cs_fixer_executable_path": {
	"windows": "c:\\xampp\\php\\bin\\php-cs-fixer",
	"linux": "/usr/local/bin/php-cs-fixer"
},

i don't known if it's possible. i want to known if it's possibile to have multiple version of settings for different environments

@benjivm
Copy link

benjivm commented Jan 24, 2020

Your 2nd example is how other plugins do it. This is a much-needed change: I work on all 3 major OSes and it's a pain to manually sync settings because of this.

benmatselby added a commit that referenced this issue Oct 15, 2023
This is part of #183. We want to be able to let the `get` or `set`
determine the OS and pull the correct value.

Next up would be to add the logic for OS based configuration in get/set
benmatselby added a commit that referenced this issue Oct 15, 2023
This is part of #183. We want to be able to let the `get` or `set`
determine the OS and pull the correct value.

Next up would be to add the logic for OS based configuration in get/set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants