From 5e6025db97f182b74bd6648608c3a7a6f01c1701 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 24 Apr 2023 01:27:42 +0200 Subject: removed error messages on grep --- config/essentials/zsh/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/essentials') diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 6fc601c..0850b94 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -28,7 +28,8 @@ zle -N add-surround surround zle -N change-surround surround compinit -if grep -qi "debian\|ubuntu" /etc/os-release; then +if grep -qi "debian\|ubuntu" /etc/os-release 2> /dev/null +then sfiles=( /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh @@ -36,8 +37,7 @@ if grep -qi "debian\|ubuntu" /etc/os-release; then else sfiles=( /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh - /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - ) + /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh) fi sfiles+=( ~/.config/zsh/functions.zsh -- cgit v1.2.3