From cef973057d046934f2b084ea074dcd51b56bc40f Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Mon, 18 Sep 2023 16:55:07 -0400 Subject: [PATCH] Add jump tool to improve cd experience --- home/.zshrc | 2 ++ playbooks/roles/osx/tasks/homebrew.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/home/.zshrc b/home/.zshrc index 59b54da..37beba6 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -341,6 +341,8 @@ export FZF_DEFAULT_COMMAND='(git ls-tree -r --name-only HEAD || rg --files --no- export FZF_DEFAULT_COMMAND='(rg --files --no-ignore --hidden --follow --glob "!.git/*" || find . -path "*/\.*" -prune -o -type f -print -o -type l -print | sed s/^..//) 2> /dev/null' export FZF_DEFAULT_COMMAND='(rg --files || find . -path "*/\.*" -prune -o -type f -print -o -type l -print | sed s/^..//) 2> /dev/null' +hash jump 2>/dev/null && eval "$(jump shell)" + [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh [ -d /home/linuxbrew/.linuxbrew/bin ] && export PATH=/home/linuxbrew/.linuxbrew/bin:$PATH diff --git a/playbooks/roles/osx/tasks/homebrew.yml b/playbooks/roles/osx/tasks/homebrew.yml index d7314ab..540478e 100644 --- a/playbooks/roles/osx/tasks/homebrew.yml +++ b/playbooks/roles/osx/tasks/homebrew.yml @@ -41,6 +41,7 @@ - highlight - htop - hub + - jump # Better cd - macvim # Has better integration with mac - ncdu - nmap