From 986efd80c92a671eea0a950997ef1ca42050b551 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 10 Jun 2023 18:21:35 +0200 Subject: zsh: install and set up tere to quickly move around the file system --- user/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'user/zsh') diff --git a/user/zsh/zshrc b/user/zsh/zshrc index 9e26b48c..2c87e5a7 100644 --- a/user/zsh/zshrc +++ b/user/zsh/zshrc @@ -164,3 +164,8 @@ ecpenv () { esetenv "$1" "${(P)1}" } compdef '_parameters' ecpenv + +tere() { + local result=$(command tere "$@") + [ -n "$result" ] && cd -- "$result" +} -- cgit 1.4.1