1
0
Fork 0

minor updates

This commit is contained in:
Maurice Audin 2016-07-28 14:41:54 +02:00
parent ffad6622e5
commit 7728a1563f
3 changed files with 13 additions and 8 deletions

View file

@ -26,7 +26,11 @@ fi
# Everyday aliases # Everyday aliases
alias j=jump alias j=jump
alias dnsfix="sudo service bind9 restart" 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} 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 # Some exports
export EDITOR=emacsclient export EDITOR=emacsclient
@ -42,3 +46,4 @@ export SAVEHIST=5000
export WATCH=all export WATCH=all
export WATCHFMT="%n has %a %l from %M" export WATCHFMT="%n has %a %l from %M"
grep "^Subject: " /var/spool/mail/hybris | sed 's/^Subject: / * /'

View file

@ -1,7 +1,7 @@
PROMPT='%{${fg_bold[white]}%}%n%{$reset_color%}%{${fg[white]}%}@%m%{$reset_color%} %{$fg[white]%}$%{$reset_color%} ' PROMPT='%{${fg_bold[white]}%}%n%{$reset_color%}%{${fg[white]}%}@%m $%{$reset_color%} '
RPROMPT='%(?,,%{${fg_bold[red]}%}[%?] %{$reset_color%})$(git_prompt_info)%{$fg[green]%}%~%{$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_PREFIX=" %{$fg_bold[yellow]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}!%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%})%{$fg_bold[red]%}!%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[yellow]%})"

4
zshrc
View file

@ -19,9 +19,9 @@ antigen bundles <<EOBUNDLES
zsh_reload zsh_reload
# local # local
$HOME/.zsh --no-local-clone hybris42/zsh
EOBUNDLES EOBUNDLES
antigen theme $HOME/.zsh/hybris.zsh-theme antigen theme hybris42/zsh hybris
antigen apply antigen apply