mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
adding source-highlight plugin
This commit is contained in:
parent
ca92b66063
commit
e30d3abf94
3 changed files with 6 additions and 1 deletions
|
|
@ -2,5 +2,6 @@
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
sudo brew install autojump
|
sudo brew install autojump
|
||||||
|
sudo brew install source-highlight
|
||||||
f=$(pwd)
|
f=$(pwd)
|
||||||
ln -Fs $f"/zshrc" ~/.zshrc
|
ln -Fs $f"/zshrc" ~/.zshrc
|
||||||
|
|
|
||||||
4
plugins/source-highlight/source-highlight.plugin.zsh
Normal file
4
plugins/source-highlight/source-highlight.plugin.zsh
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
if [ -f `/usr/local/bin/src-hilite-lesspipe.sh`]; then
|
||||||
|
export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s"
|
||||||
|
export LESS=' -R '
|
||||||
|
fi
|
||||||
2
zshrc
2
zshrc
|
|
@ -22,7 +22,7 @@ export ZSH_THEME="nicoulaj"
|
||||||
|
|
||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
plugins=(git git-flow gem brew vi-mode pip osx syntax-highlighting extract autojump virtualenvwrapper)
|
plugins=(git git-flow gem brew vi-mode pip osx syntax-highlighting extract autojump virtualenvwrapper source-highlight)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
# Customize to your needs...
|
# Customize to your needs...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue