Last active
August 29, 2015 13:56
-
-
Save AndrewDryga/9199173 to your computer and use it in GitHub Desktop.
SublimeText3 and Oh-My-ZSH~ Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="simple" | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
# Set to this to use case-sensitive completion | |
# CASE_SENSITIVE="true" | |
# Comment this out to disable bi-weekly auto-update checks | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment to change how often before auto-updates occur? (in days) | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment following line if you want to disable colors in ls | |
# DISABLE_LS_COLORS="true" | |
# Uncomment following line if you want to disable autosetting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment following line if you want to disable command autocorrection | |
# DISABLE_CORRECTION="true" | |
# Uncomment following line if you want red dots to be displayed while waiting for completion | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment following line if you want to disable marking untracked files under | |
# VCS as dirty. This makes repository status check for large repositories much, | |
# much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
plugins=(git git-flow npm osx vagrant brew bower composer ) | |
source $ZSH/oh-my-zsh.sh | |
# Customize to your needs... | |
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/git/bin:/usr/local/share/npm/bin:/usr/sbin:/sbin:/usr/bin:/bin:$PATH | |
export LC_ALL="en_US.UTF-8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* [ ] Package Control - плагин для управления плагинами :) | |
* [ ] CTags - автокомлит. | |
Установка: | |
``` | |
brew install ctags | |
``` | |
После чего нужно в конфиге сублайма прописать путь к нему. | |
* PhpDoc - плагин для офф. документации PHP | |
* DevDocs - плагин для собрания документаций http://devdocs.io/ | |
* Phpcs - стандарты кодирования. Отдельно нужно установить сам phpcs, php-cs-fixer и phpmd, указать явно пути к ним и настроить стандарт PSR2 | |
``` | |
pear install PHP_CodeSniffer | |
brew install php-cs-fixer | |
// https://github.com/facebook/pfff/blob/master/install_macos.txt | |
mkdir /usr/local/etc/facebook | |
cd /usr/local/etc/facebook | |
git clone git://github.com/facebook/pfff.git | |
sudo brew install ocaml | |
./configure | |
make depend | |
make; make opt | |
``` | |
В конфиге сублайма прописать пути ко всем частями | |
``` | |
{ | |
"phpcs_executable_path": "/usr/local/bin/phpcs", | |
"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer", | |
"phpmd_executable_path": "/usr/local/bin/phpmd", | |
"scheck_executable_path": "/usr/local/etc/facebook/pfff/scheck", | |
"phpmd_run": true, | |
"scheck_run": true, | |
"scheck_command_on_save": true, | |
"php_cs_fixer_show_quick_panel": false, | |
"phpcs_additional_args": { | |
"--standard": "PSR2", // Указываем стандарт кодирования PSR2 | |
"-n": "" | |
} | |
} | |
``` | |
* Tag - HTML/XML | |
* TrailingSpaces - удаление лишних пробелов | |
* jQuery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"tab_size": 4, // Default tab size is 4 spaces, PSR-2 | |
"detect_indentation": false, // And tab size is always same, for all projects and files | |
"trailing_spaces_trim_on_save": true, // Remove trailing spaces on save, requires TrailingSpaces plugin | |
"ensure_newline_at_eof_on_save": true, // Always add newline at end of file | |
"rulers": | |
[ | |
120 // Show ruller at wrap width | |
], | |
"wrap_width": 120, // And wrap text when its too long | |
"spell_check": true, // Check spelling (eng) | |
"translate_tabs_to_spaces": true, // PSR-2 | |
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", // Catch $ when copy-pasting PHP variables | |
"margin": 4, | |
"file_exclude_patterns": [".tags", ".tags_sorted_by_file", ".gemtags", ".DS_Store", ".git"], // Dont show CTags tmp files | |
"ignored_packages": // Default | |
[ | |
"Vintage" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment