2017-01-27 13:57:17 +01:00
|
|
|
# Term
|
|
|
|
export TERM="xterm-256color"
|
|
|
|
|
|
|
|
# Ruta de oh-my-zsh
|
2017-10-24 08:19:02 +02:00
|
|
|
export ZSH=$HOME/.oh-my-zsh
|
2017-01-27 13:57:17 +01:00
|
|
|
|
2017-12-16 00:46:51 +01:00
|
|
|
POWERLEVEL9K_MODE='awesome-fontconfig'
|
|
|
|
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(battery time context dir virtualenv vcs)
|
|
|
|
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(custom_exec_time status background_jobs kubectl_context)
|
|
|
|
POWERLEVEL9K_PYTHON_ICON=""
|
|
|
|
ZSH_THEME="powerlevel9k/powerlevel9k"
|
|
|
|
POWERLEVEL9K_BATTERY_ICON='\uf1e6 '
|
|
|
|
# Acortar a partir de un directorio
|
|
|
|
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
|
|
|
|
# Acortar path que se muestra en el prompt
|
|
|
|
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
|
2017-01-27 13:57:17 +01:00
|
|
|
|
|
|
|
# No comprobar si hay actualizaciones
|
|
|
|
DISABLE_AUTO_UPDATE="true"
|
|
|
|
|
|
|
|
# Corregir
|
2017-10-21 22:03:12 +02:00
|
|
|
ENABLE_CORRECTION="false"
|
2017-01-27 13:57:17 +01:00
|
|
|
|
|
|
|
# Mostrar puntos rojos mientras se espera el completado
|
|
|
|
COMPLETION_WAITING_DOTS="true"
|
|
|
|
|
|
|
|
# Formato de tiempo
|
|
|
|
HIST_STAMPS="dd/mm/yyyy"
|
|
|
|
|
|
|
|
# Plugins
|
2018-06-10 21:32:56 +02:00
|
|
|
plugins=(git colored-man-pages sprunge pip ssh-agent aws gitfast kube alias-tips)
|
2017-01-27 13:57:17 +01:00
|
|
|
|
2017-10-21 22:03:12 +02:00
|
|
|
# Path
|
2018-02-04 22:06:31 +01:00
|
|
|
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/sbin:/sbin:/usr/local/bin:$HOME/Scripts/bin/:/opt/go/bin"
|
2017-01-27 13:57:17 +01:00
|
|
|
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
|
2017-01-27 13:57:17 +01:00
|
|
|
|
|
|
|
# Editor preferido
|
|
|
|
export EDITOR="emacsclient -t -c"
|
|
|
|
export ALTERNATE_EDITOR="nano"
|
|
|
|
|
2017-12-16 00:46:51 +01:00
|
|
|
# Funciones personalizadas
|
2017-10-21 22:03:12 +02:00
|
|
|
source $HOME/.oh-my-zsh/custom/themes/custom.zsh
|
2017-01-27 13:57:17 +01:00
|
|
|
|
2017-10-21 22:03:12 +02:00
|
|
|
# Alias
|
|
|
|
source $HOME/.aliases
|
2017-01-27 13:57:17 +01:00
|
|
|
|
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
|
2017-12-16 00:46:51 +01:00
|
|
|
|
|
|
|
# Filtro para less
|
|
|
|
export LESS='-R'
|
|
|
|
export LESSOPEN='|~/.lessfilter %s'
|
|
|
|
|
|
|
|
# Systemd stuff
|
|
|
|
export XDG_RUNTIME_DIR="/run/user/$UID"
|
|
|
|
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
|
|
|
|
|
|
|
|
# fzf stuff
|
|
|
|
source ~/.fzf.zsh
|
|
|
|
source ~/Instalados/z/z.sh
|
|
|
|
source ~/Instalados/fz/fz.plugin.zsh
|
|
|
|
source ~/Instalados/zsh-interactive-cd/zsh-interactive-cd.plugin.zsh
|
2018-02-04 22:06:31 +01:00
|
|
|
# automatically selects the item if there's only one
|
2017-12-16 00:46:51 +01:00
|
|
|
export FZF_CTRL_T_OPTS="--select-1 --exit-0"
|
|
|
|
# The following example uses tree command to show the entries of the directory
|
|
|
|
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
|