summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-12-16 17:54:22 -0500
committer53hornet <atc@53hor.net>2021-12-16 17:54:22 -0500
commit7f4838f1c7b3b705afe9630dbf9a21a73b0a6844 (patch)
tree1bbf69d193d9ecd4b73af958b4713852edebe9a9
parent69dd04d9a9d35ebeea740f8729faad3042fb1f48 (diff)
downloaddotfiles-7f4838f1c7b3b705afe9630dbf9a21a73b0a6844.tar.xz
dotfiles-7f4838f1c7b3b705afe9630dbf9a21a73b0a6844.zip
fix: remove updates from blocks, add superuser prompt to shell
-rw-r--r--.config/i3blocks/config5
-rw-r--r--.zshrc4
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_╰ %# '