Ship custom zpreztorc with syntax highlight, history substring search [Fix #191]
This commit is contained in:
parent
643ee2d319
commit
59ff83a0a3
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -282,10 +282,6 @@
|
|||||||
path = vim/bundle/vim-scripts-Specky
|
path = vim/bundle/vim-scripts-Specky
|
||||||
url = https://github.com/vim-scripts/Specky.git
|
url = https://github.com/vim-scripts/Specky.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
[submodule "zsh/zsh-syntax-highlighting"]
|
|
||||||
path = zsh/zsh-syntax-highlighting
|
|
||||||
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
|
||||||
ignore = dirty
|
|
||||||
[submodule "vim/bundle/tpope-vim-bundler"]
|
[submodule "vim/bundle/tpope-vim-bundler"]
|
||||||
path = vim/bundle/tpope-vim-bundler
|
path = vim/bundle/tpope-vim-bundler
|
||||||
url = https://github.com/tpope/vim-bundler
|
url = https://github.com/tpope/vim-bundler
|
||||||
|
13
Rakefile
13
Rakefile
@ -21,15 +21,19 @@ task :install => [:submodule_init, :submodules] do
|
|||||||
file_operation(Dir.glob('vimify/*')) if want_to_install?('vimification of command line tools')
|
file_operation(Dir.glob('vimify/*')) if want_to_install?('vimification of command line tools')
|
||||||
file_operation(Dir.glob('{vim,vimrc}')) if want_to_install?('vim configuration (highly recommended)')
|
file_operation(Dir.glob('{vim,vimrc}')) if want_to_install?('vim configuration (highly recommended)')
|
||||||
|
|
||||||
if want_to_install?('zsh enhancements & prezto')
|
Rake::Task["install_prezto"].execute
|
||||||
install_prezto
|
|
||||||
end
|
|
||||||
|
|
||||||
install_fonts if RUBY_PLATFORM.downcase.include?("darwin")
|
install_fonts if RUBY_PLATFORM.downcase.include?("darwin")
|
||||||
|
|
||||||
success_msg("installed")
|
success_msg("installed")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :install_prezto do
|
||||||
|
if want_to_install?('zsh enhancements & prezto')
|
||||||
|
install_prezto
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
task :update => [:install] do
|
task :update => [:install] do
|
||||||
#TODO: for now, we do the same as install. But it would be nice
|
#TODO: for now, we do the same as install. But it would be nice
|
||||||
#not to clobber zsh files
|
#not to clobber zsh files
|
||||||
@ -107,6 +111,9 @@ def install_prezto
|
|||||||
file_operation(Dir.glob('zsh/prezto/runcoms/z*'), :copy)
|
file_operation(Dir.glob('zsh/prezto/runcoms/z*'), :copy)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
puts "Overriding prezto ~/.zpreztorc with YADR's zpreztorc to enable additional modules..."
|
||||||
|
run %{ ln -nfs "$HOME/.yadr/zsh/prezto-override/zpreztorc" "${ZDOTDIR:-$HOME}/.zpreztorc" }
|
||||||
|
|
||||||
puts "Creating directories for your customizations"
|
puts "Creating directories for your customizations"
|
||||||
run %{ mkdir -p $HOME/.zsh.before }
|
run %{ mkdir -p $HOME/.zsh.before }
|
||||||
run %{ mkdir -p $HOME/.zsh.after }
|
run %{ mkdir -p $HOME/.zsh.after }
|
||||||
|
@ -1 +0,0 @@
|
|||||||
source $HOME/.yadr/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
121
zsh/prezto-override/zpreztorc
Normal file
121
zsh/prezto-override/zpreztorc
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
#
|
||||||
|
# Sets Prezto options.
|
||||||
|
#
|
||||||
|
# Authors:
|
||||||
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# General
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set case-sensitivity for completion, history lookup, etc.
|
||||||
|
zstyle ':prezto:*:*' case-sensitive 'no'
|
||||||
|
|
||||||
|
# Color output (auto set to 'no' on dumb terminals).
|
||||||
|
zstyle ':prezto:*:*' color 'yes'
|
||||||
|
|
||||||
|
# Set the Zsh modules to load (man zshmodules).
|
||||||
|
# zstyle ':prezto:load' zmodule 'attr' 'stat'
|
||||||
|
|
||||||
|
# Set the Zsh functions to load (man zshcontrib).
|
||||||
|
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'
|
||||||
|
|
||||||
|
# Set the Prezto modules to load (browse modules).
|
||||||
|
# The order matters.
|
||||||
|
zstyle ':prezto:load' pmodule \
|
||||||
|
'environment' \
|
||||||
|
'terminal' \
|
||||||
|
'editor' \
|
||||||
|
'history' \
|
||||||
|
'directory' \
|
||||||
|
'spectrum' \
|
||||||
|
'utility' \
|
||||||
|
'completion' \
|
||||||
|
'prompt' \
|
||||||
|
'syntax-highlighting' \
|
||||||
|
'history-substring-search'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Editor
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the key mapping style to 'emacs' or 'vi'.
|
||||||
|
zstyle ':prezto:module:editor' keymap 'vi'
|
||||||
|
|
||||||
|
# Auto convert .... to ../..
|
||||||
|
# zstyle ':prezto:module:editor' dot-expansion 'yes'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Git
|
||||||
|
#
|
||||||
|
|
||||||
|
# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
|
||||||
|
# zstyle ':prezto:module:git:ignore' submodule 'all'
|
||||||
|
|
||||||
|
#
|
||||||
|
# GNU Utility
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the command prefix on non-GNU systems.
|
||||||
|
# zstyle ':prezto:module:gnu-utility' prefix 'g'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pacman
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the Pacman frontend.
|
||||||
|
# zstyle ':prezto:module:pacman' frontend 'yaourt'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Prompt
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the prompt theme to load.
|
||||||
|
# Setting it to 'random' loads a random theme.
|
||||||
|
# Auto set to 'off' on dumb terminals.
|
||||||
|
zstyle ':prezto:module:prompt' theme 'sorin'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Screen
|
||||||
|
#
|
||||||
|
|
||||||
|
# Auto start a session when Zsh is launched.
|
||||||
|
# zstyle ':prezto:module:screen' auto-start 'yes'
|
||||||
|
|
||||||
|
#
|
||||||
|
# SSH-Agent
|
||||||
|
#
|
||||||
|
|
||||||
|
# Enable ssh-agent forwarding.
|
||||||
|
zstyle ':prezto:module:ssh-agent' forwarding 'yes'
|
||||||
|
|
||||||
|
# Set ssh-agent identities to load.
|
||||||
|
# zstyle ':prezto:module:ssh-agent' identities 'id_rsa' 'id_rsa2' 'id_github'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Syntax Highlighting
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set syntax highlighters.
|
||||||
|
# By default main, brackets, and cursor are enabled.
|
||||||
|
zstyle ':prezto:module:syntax-highlighting' highlighters \
|
||||||
|
'main' \
|
||||||
|
'brackets' \
|
||||||
|
'pattern' \
|
||||||
|
'cursor' \
|
||||||
|
'root'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Terminal
|
||||||
|
#
|
||||||
|
|
||||||
|
# Auto set the tab and window titles.
|
||||||
|
zstyle ':prezto:module:terminal' auto-title 'yes'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tmux
|
||||||
|
#
|
||||||
|
|
||||||
|
# Auto start a session when Zsh is launched.
|
||||||
|
# zstyle ':prezto:module:tmux' auto-start 'yes'
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 45194671af8e1d6b37b16e214a58674762ab8e49
|
|
Loading…
Reference in New Issue
Block a user