dotfiles/configs/zshrc

34 lines
1.2 KiB
Bash
Raw Normal View History

2022-07-04 16:06:23 +03:00
export ZSH="$HOME/.dotfiles/oh-my-zsh"
ZSH_THEME="ivabus"
2022-09-25 20:16:39 +03:00
ENABLE_CORRECTION="true"
plugins=(git zsh-syntax-highlighting)
2022-07-04 16:06:23 +03:00
# putting motd before ohmyzsh for quickier first output
2022-09-25 19:22:36 +03:00
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}')
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}')
2022-09-25 20:16:39 +03:00
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}')
2022-09-25 19:22:36 +03:00
UPTIME=$(uptime -p)
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"
2022-09-28 17:35:47 +03:00
alias timestamp='date -u +%FT%TZ'
2022-11-20 10:25:51 +03:00
export REPORTTIME=3