From 7728a1563f756c5a8a115a6d33259f5b328955ab Mon Sep 17 00:00:00 2001 From: maudin Date: Thu, 28 Jul 2016 14:41:54 +0200 Subject: [PATCH] minor updates --- hybris.plugin.zsh | 5 +++++ hybris.zsh-theme | 12 ++++++------ zshrc | 4 ++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/hybris.plugin.zsh b/hybris.plugin.zsh index b04ce2e..eec38ac 100644 --- a/hybris.plugin.zsh +++ b/hybris.plugin.zsh @@ -26,7 +26,11 @@ fi # Everyday aliases alias j=jump alias dnsfix="sudo service bind9 restart" +alias open_ports="sudo netstat -tulpen 2> /dev/null | grep LISTEN" +alias offlineimap="/usr/bin/screen -list offlineimap > /dev/null || /usr/bin/screen -d -m -S offlineimap offlineimap" cless() {for a in $@; do colorize_via_pygmentize $a | less; done} +r() {if [ $# -eq 1 ]; then ssh root@$1; else sudo su -; fi} +health() {/usr/bin/screen -O -S health -c ~/.config/screen_health} # Some exports export EDITOR=emacsclient @@ -42,3 +46,4 @@ export SAVEHIST=5000 export WATCH=all export WATCHFMT="%n has %a %l from %M" +grep "^Subject: " /var/spool/mail/hybris | sed 's/^Subject: / * /' diff --git a/hybris.zsh-theme b/hybris.zsh-theme index 0a91384..c7c00d2 100644 --- a/hybris.zsh-theme +++ b/hybris.zsh-theme @@ -1,7 +1,7 @@ -PROMPT='%{${fg_bold[white]}%}%n%{$reset_color%}%{${fg[white]}%}@%m%{$reset_color%} %{$fg[white]%}$%{$reset_color%} ' -RPROMPT='%(?,,%{${fg_bold[red]}%}[%?] %{$reset_color%})$(git_prompt_info)%{$fg[green]%}%~%{$reset_color%}' +PROMPT='%{${fg_bold[white]}%}%n%{$reset_color%}%{${fg[white]}%}@%m $%{$reset_color%} ' +RPROMPT='%{$fg[white]%}%~$(git_prompt_info)%{$reset_color%}%(?,,%{${fg_bold[red]}%} [%?]%{$reset_color%})' -ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}(" -ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " -ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}!%{$reset_color%}" -ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" +ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg_bold[yellow]%}(" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%})%{$fg_bold[red]%}!%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[yellow]%})" diff --git a/zshrc b/zshrc index c682e9c..b15a3cb 100644 --- a/zshrc +++ b/zshrc @@ -19,9 +19,9 @@ antigen bundles <