diff --git a/.zshrc b/.zshrc index 995ce04..e126647 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,3 @@ -# Fig pre block. Keep at the top of this file. -[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh" # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. @@ -84,6 +82,7 @@ ENABLE_CORRECTION="true" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder +ZOXIDE_CMD_OVERRIDE="cd" # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ @@ -91,10 +90,11 @@ ENABLE_CORRECTION="true" # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( - npm + # npm nvm sudo zoxide + tldr command-not-found fzf fzf-tab @@ -103,6 +103,9 @@ plugins=( zsh-syntax-highlighting ) +# zstyle ':fzf-tab:complete:tldr:argument-1' fzf-preview 'tldr $word' +zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath' + export ZDOTDIR=$ZSH/cache source $HOME/.config/contour/contour.zsh @@ -148,13 +151,9 @@ typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet # For a full list of active aliases, run `alias`. # alias ohmyzsh="mate ~/.oh-my-zsh" -alias dc="docker compose" alias "docker-compose"="docker compose" alias nnn="n" -alias explorer="xdg-open" - -alias cd="z" alias ls="/bin/eza --icons" alias tree="/bin/eza --icons -T" alias bat="batcat --paging=never" @@ -164,7 +163,6 @@ alias curl="curlie" alias df="duf" alias grep="ugrep" alias ping="prettyping" -alias man="npx tldr --" alias find="fzf" # Set personal aliases with autocomplete @@ -190,6 +188,3 @@ setopt HIST_IGNORE_SPACE # Dont record an entry starting with a space: setopt HIST_SAVE_NO_DUPS # Dont write duplicate entries in the history file: setopt SHARE_HISTORY # Share history between all sessions: unsetopt HIST_VERIFY # Execute commands using history (e.g.: using !$) immediatel: - -# Fig post block. Keep at the bottom of this file. -[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"