From d0a1fd28d05a3d3d2399eddae48a8db0e8e887a5 Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Thu, 6 Jun 2024 17:20:53 -0300 Subject: [PATCH] feat: add zoxide terminal tools --- brew/Brewfile | 1 + zsh/.zshrc | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/brew/Brewfile b/brew/Brewfile index 6dfbd10..dbd39df 100644 --- a/brew/Brewfile +++ b/brew/Brewfile @@ -25,6 +25,7 @@ brew "fzf" brew "git-delta" brew "tldr" brew "thefuck" +brew "zoxide" # Docker brew "docker" diff --git a/zsh/.zshrc b/zsh/.zshrc index 2f72e29..2bf8199 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -58,7 +58,7 @@ export ZSH="$HOME/.oh-my-zsh" # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(zsh-z web-search) +plugins=(web-search) source $ZSH/oh-my-zsh.sh @@ -184,13 +184,19 @@ _fzf_comprun() { esac } -# thefuck configuration +### thefuck configuration eval $(thefuck --alias) eval $(thefuck --alias fk) +### Zoxide (better cd) configuration +eval "$(zoxide init zsh)" + ### List directories alias ls="eza -a --group-directories-first --icons --color=always" alias la="eza -a --group-directories-first --icons --color=always --oneline" ### Go to dotfiles directory alias dotfiles="code ~/.dotfiles" + +### Zoxide (better cd) +alias cd="z"