diff --git a/configs/zshrc b/configs/zshrc index 28e6a0d..b6f1db4 100644 --- a/configs/zshrc +++ b/configs/zshrc @@ -1,16 +1,11 @@ + 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" - -source $ZSH/oh-my-zsh.sh - -alias vi="nvim" -alias vim="nvim" - +# putting motd before ohmyzsh for quickier first output AVLD=$(cut -d " " -f1-3 /proc/loadavg) USEDMEM=$(free -h | grep Mem | awk '{print $3 " / " $2}') USEDSWAP=$(free -h | grep Swap | awk '{ print $3 " / " $2}') @@ -22,10 +17,16 @@ 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]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" +printf "\e[0;32m$(whoami)@$(hostnamectl hostname)\e[m\n" +printf "\e[0;34msystem load:\e[m\t${AVLD}\n" +printf "\e[0;34musage of /:\e[m\t${USEDSTRGPERC}% (${USEDSTRG}/${STRG})\n" +printf "\e[0;34musage of /home:\e[m\t${USEDSTRGPERCHOME}% (${USEDSTRGHOME}/${STRGHOME})\n" +printf "\e[0;34mmemory usage:\e[m\t${USEDMEM}\n" +printf "\e[0;34mswap usage:\e[m\t${USEDSWAP}\n" +printf "\e[0;34muptime:\e[m\t\t${UPTIME}\n" + +source $ZSH/oh-my-zsh.sh + +alias vi="nvim" +alias vim="nvim" +alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh"