zsh: Agregar advertencia sobre seguridad de vcs_info

This commit is contained in:
Cat /dev/Nulo 2022-03-16 23:42:46 -03:00
parent 9545c9c248
commit c67354ca58

2
.zshrc
View file

@ -18,6 +18,8 @@ zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*'
zstyle :compinstall filename ~/.zshrc
autoload -Uz compinit && compinit
# Advertencia: no es seguro entrar a carpetas desconfiables con esto...
# https://blog.sonarsource.com/securing-developer-tools-git-integrations
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats \
'%F{4}[%F{2}%b%F{3}|%F{1}%a%F{4}]%f '