Skip to content

Commit 957fae3

Browse files
committed
update zshrc
1 parent 63a168d commit 957fae3

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

zsh/.zshrc

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
1-
# zmodload zsh/zprof
21
## ---- Zap ----- https://www.zapzsh.com/ --> rm -rf "$ZAP_DIR"
32
ZAP_INI="${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
43
[[ ! -f $ZAP_INI ]] && zsh <(curl -s https://raw.githubusercontent.com/zap-zsh/zap/master/install.zsh) --keep --branch release-v1
54
source $ZAP_INI
65
## End Zap
76

8-
plug "zap-zsh/supercharge"
9-
plug "hlissner/zsh-autopair"
107
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"
1115
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"
1617

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
1921

20-
autoload -Uz zmv # Habilita zmv para renombrar archivos
22+
# ================================= Config Programs ============================
23+
command -v zoxide >/dev/null && eval "$(zoxide init --cmd cd zsh)"
2124

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=''
2429
HISTSIZE=10000 # Comandos en memoria
2530
SAVEHIST=10000 # Comandos guardados
2631
HISTFILE=~/.zsh_history # Archivo de historial
2732
setopt HIST_IGNORE_ALL_DUPS # Ignora todos los duplicados, no solo consecutivos
2833
setopt HIST_IGNORE_SPACE # Ignorar comandos con espacio al inicio
2934

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
3436

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

Comments
 (0)