zsh: Use &>/dev/null
This commit is contained in:
@@ -67,7 +67,7 @@ autoload -U select-word-style && select-word-style bash
|
|||||||
|
|
||||||
## Setup the prompt
|
## Setup the prompt
|
||||||
# use bright version of colors when printing bold
|
# use bright version of colors when printing bold
|
||||||
if command -v dircolors >/dev/null 2>&1; then
|
if command -v dircolors &>/dev/null; then
|
||||||
if [[ -e "${XDG_CONFIG_HOME:-$HOME/.config}/dircolors/dircolors" ]]; then
|
if [[ -e "${XDG_CONFIG_HOME:-$HOME/.config}/dircolors/dircolors" ]]; then
|
||||||
eval "$(dircolors -b "${XDG_CONFIG_HOME:-$HOME/.config}/dircolors/dircolors")"
|
eval "$(dircolors -b "${XDG_CONFIG_HOME:-$HOME/.config}/dircolors/dircolors")"
|
||||||
else
|
else
|
||||||
@@ -125,7 +125,7 @@ if [[ -d "$ZDOTDIR/autoload" ]]; then
|
|||||||
fpath=("$ZDOTDIR/autoload" $fpath)
|
fpath=("$ZDOTDIR/autoload" $fpath)
|
||||||
autoload -Uz -- "" "${fpath[1]}"/[^_.]*(.xN:t)
|
autoload -Uz -- "" "${fpath[1]}"/[^_.]*(.xN:t)
|
||||||
fi
|
fi
|
||||||
! command -v direnv >/dev/null 2>&1 || eval "$(direnv hook zsh)"
|
! command -v direnv &>/dev/null || eval "$(direnv hook zsh)"
|
||||||
# stderred
|
# stderred
|
||||||
if [[ -e "$ZSH_CONF/stderred/usr/share/stderred/stderred.sh" ]]; then
|
if [[ -e "$ZSH_CONF/stderred/usr/share/stderred/stderred.sh" ]]; then
|
||||||
comp-source "$ZSH_CONF/stderred/usr/share/stderred/stderred.sh"
|
comp-source "$ZSH_CONF/stderred/usr/share/stderred/stderred.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user