1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00

zsh support for FreeBSD

This commit is contained in:
eoli3n 2017-12-22 15:55:48 +01:00
parent d9b4497a72
commit ab4ebc34ec
3 changed files with 6 additions and 4 deletions

2
TODO

@ -5,6 +5,4 @@
- TOTEST: debian and centos root and user
- TOTEST: ansible provisionner vagrant : https://github.com/hashicorp/vagrant/issues/7890
- TODO: change includes in import tasks to be able to resolv with list-tasks
- TOFIX: freebsd "tput: tgetent failure"
- TOFIX: freebsd terminfo
- TOFIX: zsh-syntax-highlighting wrong path

@ -8,7 +8,7 @@
become: True
- name: Configure zshrc
copy: src=files/.zshrc dest=~/.zshrc backup=yes
template: src=templates/.zshrc dest=~/.zshrc backup=yes
- name: Install oh-my-zsh
shell: creates=~/.oh-my-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

@ -57,7 +57,7 @@ dupkg_ex() { expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqen | sort) <
export EDITOR='vim'
export VISUAL='vim'
export BROWSER='google-chrome-stable'
export POWERLINE_CONFIG_COMMAND=/usr/bin/powerline-config
export POWERLINE_CONFIG_COMMAND='powerline-config'
export PAGER='most'
if [[ $TERM == xterm-termite ]] && [[ -z "$SSH_CLIENT" ]] || [[ -z "$SSH_TTY" ]]; then
@ -72,7 +72,11 @@ source ~/.zshrc_node
autoload -U zmv
plugins=(git python colored-man-pages colorize sprunge web-search)
source $ZSH/oh-my-zsh.sh
{% if ansible_os_family == "FreeBSD" %}
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
{% else %}
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
{% endif %}
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'