From ebc1b075fd1b03cda5e20bbcfbd97c5cbab59286 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Sun, 25 Sep 2022 20:16:39 +0300 Subject: [PATCH] Add autocorrection to zsh config --- configs/zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/zshrc b/configs/zshrc index 87debf6..28e6a0d 100644 --- a/configs/zshrc +++ b/configs/zshrc @@ -1,7 +1,7 @@ export ZSH="$HOME/.dotfiles/oh-my-zsh" ZSH_THEME="ivabus" - +ENABLE_CORRECTION="true" plugins=(git zsh-syntax-highlighting) alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh" @@ -17,11 +17,15 @@ USEDSWAP=$(free -h | grep Swap | awk '{ print $3 " / " $2}') USEDSTRG=$(df / -h | tail -n 1 | awk '{print $3}') USEDSTRGPERC=$(df / -h | tail -n 1 | awk '{print $5}') STRG=$(df / -h | tail -n 1 | awk '{print $2}') +USEDSTRGHOME=$(df /home -h | tail -n 1 | awk '{print $3}') +USEDSTRGPERCHOME=$(df /home -h | tail -n 1 | awk '{print $5}') +STRGHOME=$(df /home -h | tail -n 1 | awk '{print $2}') UPTIME=$(uptime -p) printf "$fg[green]$(whoami)@$(hostnamectl hostname)$reset_color\n" printf "$fg[blue]system load:$reset_color\t${AVLD}\n" -printf "$fg[blue]memory usage:$reset_color\t${USEDMEM}\n" printf "$fg[blue]usage of /:$reset_color\t${USEDSTRGPERC}% (${USEDSTRG}/${STRG})\n" +printf "$fg[blue]usage of /home:$reset_color\t${USEDSTRGPERCHOME}% (${USEDSTRGHOME}/${STRGHOME})\n" +printf "$fg[blue]memory usage:$reset_color\t${USEDMEM}\n" printf "$fg[blue]swap usage:$reset_color\t${USEDSWAP}\n" printf "$fg[blue]uptime:$reset_color\t\t${UPTIME}\n"