From 4d66e1b1d1cd60ca368057c5429cae63eee4fa63 Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Fri, 23 Apr 2021 16:07:54 +0200 Subject: [PATCH] Add command to 'push jump' * New function: `pj` Resolves path with `j` (`z`) and pushes it with `pushd`. --- zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index ae409fc..10be02b 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -272,6 +272,10 @@ scrotclip() { scrot $@ /tmp/scrotclip.png -e 'xclip -se c -t image/png -i $f && rm $f' } +pj() { + pushd "$(j -e $@)" +} + # WTF, Ansible? export ANSIBLE_NOCOWS=1 -- 2.54.0