From f3514d2f8efe533d7bea5ca90412e4fda81e852b Mon Sep 17 00:00:00 2001 From: Joty Date: Thu, 2 Aug 2018 12:18:59 +0930 Subject: [PATCH] =?UTF-8?q?Matrix=20as=20screensaver=20(=E2=8C=90=E2=96=A0?= =?UTF-8?q?=5F=E2=96=A0)=20stats:=20docker=5Fmachine=20ssh=20public=5Fip?= =?UTF-8?q?=20todo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshrc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 77ca1f7..10b0ad3 100644 --- a/.zshrc +++ b/.zshrc @@ -8,6 +8,11 @@ export TERM="xterm-256color" # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loaded. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes + +# Source and use awesome-fonts +# source ~/.fonts/*.sh +POWERLEVEL9K_MODE='awesome-fontconfig' + ZSH_THEME="powerlevel9k/powerlevel9k" POWERLEVEL9K_OS_ICON_BACKGROUND="white" @@ -16,7 +21,12 @@ POWERLEVEL9K_DIR_HOME_FOREGROUND="white" POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white" POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white" -POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time ram rvm time) +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(docker_machine status command_execution_time background_jobs ssh public_ip todo ram load rvm time) + +POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs) + +POWERLEVEL9K_PROMPT_ON_NEWLINE=true + # Uncomment the following line to use case-sensitive completion. # CASE_SENSITIVE="true" @@ -145,3 +155,7 @@ https() { # make httpie use https cheat() { curl https://cheat.sh/$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 } + +# Matrix screen saver! will run if you have installed "cmatrix" +TMOUT=300 +TRAPALRM() { if command -v cmatrix &> /dev/null; then cmatrix -s; fi }