summary refs log tree commit diff stats
path: root/user/zsh
diff options
context:
space:
mode:
authorAlan Pearce2023-06-10 18:21:35 +0200
committerAlan Pearce2023-06-10 18:21:35 +0200
commit986efd80c92a671eea0a950997ef1ca42050b551 (patch)
tree60a4c3098f00214bf2a896d16fef3a59ff9aa9ca /user/zsh
parent5ecc7f4e889be6bc899d2f7faa72d44c422f4c6c (diff)
downloadnixfiles-986efd80c92a671eea0a950997ef1ca42050b551.tar.lz
nixfiles-986efd80c92a671eea0a950997ef1ca42050b551.tar.zst
nixfiles-986efd80c92a671eea0a950997ef1ca42050b551.zip
zsh: install and set up tere to quickly move around the file system
Diffstat (limited to 'user/zsh')
-rw-r--r--user/zsh/zshrc5
1 files changed, 5 insertions, 0 deletions
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"
+}