From 7f4838f1c7b3b705afe9630dbf9a21a73b0a6844 Mon Sep 17 00:00:00 2001 From: 53hornet Date: Thu, 16 Dec 2021 17:54:22 -0500 Subject: fix: remove updates from blocks, add superuser prompt to shell --- .config/i3blocks/config | 5 ----- .zshrc | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 692aa04..0b22813 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -29,11 +29,6 @@ interval=once signal=13 command=unread=$(newsboat -x print-unread|cut -w -f1) && [ "$unread" != 0 ] && [ "$unread" != Authentication ] && printf "󰎕 %s\n" $unread || return 0 -[updates] -interval=once -signal=15 -command=doas freebsd-update updatesready > /dev/null ; [ $? -ne 2 ] && printf "󰣠 Updates ready" || return 0 - [weather] interval=300 command=weather.sh diff --git a/.zshrc b/.zshrc index fd607c2..c8344bb 100644 --- a/.zshrc +++ b/.zshrc @@ -39,7 +39,7 @@ WORDCHARS=${WORDCHARS//[&.;]} # Don't consider c bindkey -v ## Aliases -. "$HOME/.config/aliasrc" +[ -f "$HOME/.config/aliasrc" ] && . "$HOME/.config/aliasrc" ## Plugins source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # syntax highlighting @@ -56,4 +56,4 @@ zstyle ':vcs_info:git:*' formats '├ %b'$'\n' ## Prompt RPROMPT=$'%(?.%t.%? %t)' -PROMPT=$'\n╭ %B$fg[cyan]%(4~|%-1~/.../%2~|%~)%b\n\$vcs_info_msg_0_╰ ' +PROMPT=$'\n╭ %B$fg[cyan]%(4~|%-1~/.../%2~|%~)%b\n\$vcs_info_msg_0_╰ %# ' -- cgit v1.2.3