|
1 |
| -# zmodload zsh/zprof |
2 | 1 | ## ---- Zap ----- https://www.zapzsh.com/ --> rm -rf "$ZAP_DIR"
|
3 | 2 | ZAP_INI="${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
|
4 | 3 | [[ ! -f $ZAP_INI ]] && zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --keep --branch release-v1
|
5 | 4 | source $ZAP_INI
|
6 | 5 | ## End Zap
|
7 | 6 |
|
8 |
| -plug "zap-zsh/supercharge" |
9 |
| -plug "hlissner/zsh-autopair" |
10 | 7 | plug "zsh-users/zsh-autosuggestions"
|
| 8 | +plug "hlissner/zsh-autopair" |
| 9 | +plug "zap-zsh/supercharge" |
| 10 | +plug "zap-zsh/zap-prompt" |
| 11 | +plug "zsh-users/zsh-syntax-highlighting" |
| 12 | +plug "zsh-users/zsh-history-substring-search" |
| 13 | +plug "trapd00r/LS_COLORS" && zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} |
| 14 | +plug "$HOME/.bash_aliases" |
11 | 15 | plug "wintermi/zsh-mise"
|
12 |
| -plug "z-shell/F-Sy-H" # "zsh-users/zsh-syntax-highlighting" |
13 |
| -plug "zap-zsh/exa" |
14 |
| -plug "zap-zsh/fzf" |
15 |
| -plug "Aloxaf/fzf-tab" |
| 16 | +plug "zap-zsh/completions" |
16 | 17 |
|
17 |
| -export POSH_THEME="$HOME/.config/p10k.yaml" |
18 |
| -plug "wintermi/zsh-oh-my-posh" |
| 18 | +# Load and initialise completion system |
| 19 | +autoload -Uz compinit |
| 20 | +compinit |
19 | 21 |
|
20 |
| -autoload -Uz zmv # Habilita zmv para renombrar archivos |
| 22 | +# ================================= Config Programs ============================ |
| 23 | +command -v zoxide >/dev/null && eval "$(zoxide init --cmd cd zsh)" |
21 | 24 |
|
22 |
| -PROMPT_EOL_MARK='⏎' |
23 |
| -# Configuración del historial |
| 25 | +# --------------------------------- SETTINGS ---------------------------------- |
| 26 | +export EDITOR=vim |
| 27 | +export LANG=en_US.UTF-8 |
| 28 | +export PROMPT_EOL_MARK='⏎' |
24 | 29 | HISTSIZE=10000 # Comandos en memoria
|
25 | 30 | SAVEHIST=10000 # Comandos guardados
|
26 | 31 | HISTFILE=~/.zsh_history # Archivo de historial
|
27 | 32 | setopt HIST_IGNORE_ALL_DUPS # Ignora todos los duplicados, no solo consecutivos
|
28 | 33 | setopt HIST_IGNORE_SPACE # Ignorar comandos con espacio al inicio
|
29 | 34 |
|
30 |
| -# Autocompletado avanzado |
31 |
| -autoload -Uz compinit && compinit |
32 |
| -zstyle ':completion:*' menu select |
33 |
| -zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' # Insensible a mayúsculas |
| 35 | +autoload -Uz zmv # Habilita zmv para renombrar archivos |
34 | 36 |
|
35 |
| -# Variables de entorno |
36 |
| -export PATH="$HOME/bin:$HOME/.local/bin:$PATH" |
37 |
| -export EDITOR="nvim" # Editor por defecto |
38 |
| -export LANG="es_ES.UTF-8" # Idioma (ajusta según tu región) |
39 |
| -# zprof |
| 37 | +# Global Aliases |
| 38 | +alias -g -- --help='--help 2>&1 | bat --language=help --style=plain' |
| 39 | +alias -g G='| grep -i' |
| 40 | +alias -g H='| head' |
| 41 | +alias -g J='| jq' |
| 42 | +alias -g L='| less' |
| 43 | +alias -g T='| tail' |
| 44 | +alias -g V='--version' |
| 45 | +alias -g \?\?='--help' |
0 commit comments