config/zsh: Swallow errors in incomplete setup & return 0

This commit is contained in:
xerus2000 2020-10-14 14:48:03 +02:00
parent b9e9713bfb
commit b7d2902559
3 changed files with 6 additions and 6 deletions

1
.config/zsh/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.zcompdump

View File

@ -1,2 +1 @@
echo "user-zlogout">>/var/tmp/testi
/usr/local/bin/timew stop
/usr/local/bin/timew stop 2>/dev/null

View File

@ -1,9 +1,9 @@
# Commands
if test "$PWD" = ~ && test "$0" != "$SHELL"; then
if test "$PWD" = "$HOME" && test "$0" != "$SHELL"; then
neofetch --config $XDG_CONFIG_HOME/neofetch/config-short.conf
task next limit:3
timew | head -3
fi
fi 2>/dev/null || return 0
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
@ -179,6 +179,6 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# To customize prompt, run `p10k configure` or edit .p10k.zsh.
test -f $CONFIG_ZSH/.p10k.zsh && source $CONFIG_ZSH/.p10k.zsh
test -s $CONFIG_ZSH/.p10k.zsh && source $CONFIG_ZSH/.p10k.zsh
test -d /usr/share/fzf && source /usr/share/fzf/key-bindings.zsh && source /usr/share/fzf/completion.zsh
test -d /usr/share/fzf && source /usr/share/fzf/key-bindings.zsh && source /usr/share/fzf/completion.zsh || return 0