From a1c1e659602481de677fdcf94f3ff2ced0183601 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 5 Mar 2024 19:25:10 +0200 Subject: [PATCH] add zoxide --- shell/.aliases | 6 +++++- shell/.zshrc | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/shell/.aliases b/shell/.aliases index d6d6658..3d3f115 100644 --- a/shell/.aliases +++ b/shell/.aliases @@ -11,8 +11,12 @@ alias ll='ls -alhFG' alias la='ls -AG' alias l='ls -CFG' +if test $(which zoxide); then + alias cd="z" +fi; + # eza aliases, if available -if test $(which eza); then +if test $(which eza); then eza_params=( '--git' '--icons' '--group' '--group-directories-first' '--time-style=relative' '--total-size' diff --git a/shell/.zshrc b/shell/.zshrc index f1a3c84..220c812 100644 --- a/shell/.zshrc +++ b/shell/.zshrc @@ -68,6 +68,5 @@ source "$ZDOTDIR/plugins/.zsh-better-npm-completion/zsh-better-npm-completion.pl # https://github.com/sunlei/zsh-ssh source "$ZDOTDIR/plugins/zsh-ssh/zsh-ssh.zsh" - # https://github.com/Tarrasch/zsh-bd source "$ZDOTDIR/plugins/bd/bd.zsh"