diff --git a/roles/shell-dotfiles/files/zshrc b/roles/shell-dotfiles/files/zshrc index 6eb6fa8..133aa1d 100644 --- a/roles/shell-dotfiles/files/zshrc +++ b/roles/shell-dotfiles/files/zshrc @@ -5,15 +5,14 @@ export TERM="xterm-256color" export ZSH=$HOME/.oh-my-zsh 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_PYTHON_ICON="" 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 +POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER=false +POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(battery time dir virtualenv vcs) +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(custom_exec_time status background_jobs aws kubectl_context) # No comprobar si hay actualizaciones DISABLE_AUTO_UPDATE="true" @@ -28,7 +27,7 @@ COMPLETION_WAITING_DOTS="true" HIST_STAMPS="dd/mm/yyyy" # Plugins -plugins=(git colored-man-pages sprunge pip ssh-agent aws gitfast kube alias-tips) +plugins=(git colored-man-pages sprunge pip ssh-agent aws gitfast kube alias-tips copyfile jira) # Path PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/sbin:/sbin:/usr/local/bin:$HOME/Scripts/bin/:/opt/go/bin" @@ -44,7 +43,7 @@ export LC_ALL=es_ES.UTF-8 # Editor preferido export EDITOR="emacsclient -t -c" -export ALTERNATE_EDITOR="nano" +export ALTERNATE_EDITOR="vim" # Funciones personalizadas source $HOME/.oh-my-zsh/custom/themes/custom.zsh @@ -76,9 +75,12 @@ source ~/.fzf.zsh source ~/Instalados/z/z.sh source ~/Instalados/fz/fz.plugin.zsh source ~/Instalados/zsh-interactive-cd/zsh-interactive-cd.plugin.zsh + # automatically selects the item if there's only one 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'" + # Add git-extras autocompletion source ~/Instalados/git-extras//etc/git-extras-completion.zsh