2022-07-04 16:06:23 +03:00
|
|
|
export ZSH="$HOME/.dotfiles/oh-my-zsh"
|
|
|
|
|
|
|
|
ZSH_THEME="ivabus"
|
|
|
|
|
2022-07-10 08:26:51 +03:00
|
|
|
plugins=(git zsh-syntax-highlighting)
|
2022-07-04 16:06:23 +03:00
|
|
|
|
|
|
|
alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh"
|
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
2022-08-03 19:08:40 +03:00
|
|
|
|
|
|
|
alias vi="nvim"
|
|
|
|
alias vim="nvim"
|
2022-08-31 18:26:36 +03:00
|
|
|
|
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}')
|
|
|
|
UPTIME=$(uptime -p)
|
2022-08-31 18:26:36 +03:00
|
|
|
|
2022-09-25 19:22:36 +03:00
|
|
|
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]swap usage:$reset_color\t${USEDSWAP}\n"
|
|
|
|
printf "$fg[blue]uptime:$reset_color\t\t${UPTIME}\n"
|