From 2dedd4636998dbae63a57b85a381e14e33f42603 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Fri, 22 Dec 2017 21:06:46 +0100 Subject: [PATCH] changed zsh config --- README.md | 1 + TODO | 1 + roles/zsh/tasks/main.yml | 4 ++++ roles/zsh/templates/.zshrc | 3 +-- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1cd76b0..bfbbfeb 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ To use dark theme, go to graphical configuration and click ``Use GTK+ Theme`` ## Supported OS - Archlinux +- Debian - Centos - FreeBSD : need to ``sudo ln -s /usr/local/bin/python2 /usr/bin/python`` diff --git a/TODO b/TODO index add9054..4581322 100644 --- a/TODO +++ b/TODO @@ -6,3 +6,4 @@ - TOTEST : powerlines - TODO: check best install method all distrib powerline - TODO: clean zshrc +- TODO: Ubuntu compat and vagrant diff --git a/roles/zsh/tasks/main.yml b/roles/zsh/tasks/main.yml index 67fd15a..dc3ebc7 100644 --- a/roles/zsh/tasks/main.yml +++ b/roles/zsh/tasks/main.yml @@ -41,6 +41,10 @@ shell: creates=~/.oh-my-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" ignore_errors: True +- name: Search for zsh-syntax-highlighting + shell: find /usr -name zsh-syntax-highlighting.zsh 2>/dev/null + register: zsh-syntax-highlighting-dir + - name: Configure zshrc template: src=templates/.zshrc dest=~/.zshrc backup=yes diff --git a/roles/zsh/templates/.zshrc b/roles/zsh/templates/.zshrc index d10293c..1738170 100644 --- a/roles/zsh/templates/.zshrc +++ b/roles/zsh/templates/.zshrc @@ -72,8 +72,7 @@ source ~/.zshrc_node autoload -U zmv plugins=(git python colored-man-pages colorize sprunge web-search) source $ZSH/oh-my-zsh.sh -zsh-syntax-highlighting-dir=$(find /usr -name zsh-syntax-highlighting.zsh 2>/dev/null) -source $zsh-syntax-highlighting-dir +source {{ zsh-syntax-highlighting-dir.stdout }} export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8' ### PURE PROMPT