dotfiles/roles/shell-dotfiles/files/zshrc

66 lines
1.5 KiB
Bash
Raw Normal View History

2017-10-21 22:03:12 +02:00
#!/usr/bin/env zsh
# Term
export TERM="xterm-256color"
# Ruta de oh-my-zsh
2017-10-24 08:19:02 +02:00
export ZSH=$HOME/.oh-my-zsh
# Tema a elegir: usa uno simple si me conecto por ssh
if [[ -n $SSH_CLIENT ]];
then
ZSH_THEME="alanpeabody"
else
POWERLEVEL9K_MODE='awesome-fontconfig'
2017-10-21 22:03:12 +02:00
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(battery time context dir virtualenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(custom_exec_time status background_jobs)
POWERLEVEL9K_PYTHON_ICON=""
ZSH_THEME="powerlevel9k/powerlevel9k"
2017-10-21 22:03:12 +02:00
POWERLEVEL9K_BATTERY_ICON='\uf1e6 '
fi
# No comprobar si hay actualizaciones
DISABLE_AUTO_UPDATE="true"
# Corregir
2017-10-21 22:03:12 +02:00
ENABLE_CORRECTION="false"
# Mostrar puntos rojos mientras se espera el completado
COMPLETION_WAITING_DOTS="true"
# Formato de tiempo
HIST_STAMPS="dd/mm/yyyy"
# Plugins
2017-10-28 21:31:55 +02:00
plugins=(git colored-man-pages sprunge autojump gpg-agent pip urlencode ssh-agent)
2017-10-21 22:03:12 +02:00
# Path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/sbin:/sbin:/usr/local/bin:$HOME/Scripts/bin/"
export MANPATH="/usr/local/man:$MANPATH"
# Usar oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Lenguaje
2017-10-21 22:03:12 +02:00
export LANG=es_ES.UTF-8
export LANGUAGE=es_ES.UTF-8
export LC_ALL=es_ES.UTF-8
# Editor preferido
export EDITOR="emacsclient -t -c"
export ALTERNATE_EDITOR="nano"
2017-10-21 22:03:12 +02:00
# Funciones para custom_exec_time y battery_prompt
source $HOME/.oh-my-zsh/custom/themes/custom.zsh
2017-10-21 22:03:12 +02:00
# Alias
source $HOME/.aliases
2017-10-21 22:03:12 +02:00
# Python virtualenv
export WORKON_HOME=$HOME/.virtualenvs
mkdir -p $HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper_lazy.sh > /dev/null
2017-03-30 09:53:39 +02:00
2017-10-21 22:03:12 +02:00
# Cargar funciones
source $HOME/.functions