Wednesday, March 7, 2012

my .zshrc file

# Lines configured by zsh-newuser-install
setopt autocd
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/cgerada/.zshrc'

autoload -Uz compinit
# End of lines added by compinstall

#the following lines were added by cgerada
#autocompletion of hostname from ,ssh/known_hosts

local _myhosts
_myhosts=( ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*} )
zstyle ':completion:*' hosts $_myhosts
#Spelling autocorrect
setopt  correct

#coloured prompt
autoload -U colors && colors
PS1="%{$fg_bold[green]%}%n%{$reset_color%}@%{$fg_bold[blue]%}%m %{$fg_bold[yellow]%}%~ %{$reset_color%}%% "
# right hand prompt simple date and time only

#Extension aliases very cool
alias -s doc=libreoffice
alias -s xls=libreoffice
alias -s doc=libreoffice
alias -s pdf=evince



No comments: