From 4abe97f989fb147817c546dd416e16ce0e99e5b5 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Sun, 9 Feb 2020 23:39:36 +0800 Subject: [PATCH] jump backwards --- README.md | 2 ++ z.lua.plugin.zsh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 85952cf..31b6dc6 100644 --- a/README.md +++ b/README.md @@ -323,6 +323,7 @@ If you want `zb` jump back to a parent directory contains a `.root` or `package. **Bonus**: `zb ..` equals to `cd ..`, `zb ...` equals to `cd ../..` and `zb ....` equals to `cd ../../..`, and so on. Finally, `zb ..20` equals to `cd (..)x20`. +**Bonus**: try `zb -i` and `zb -I` and you can alias them to `zbi` and `zbf`. ## Completion @@ -459,6 +460,7 @@ As you see, z.lua is the fastest one and requires less resource. ## History +- 1.8.1 (2020-02-09): new: `z -b -i` and `z -b -I` to jump backwards in interactive mode. - 1.7.4 (2019-12-29): new: `$_ZL_HYPHEN` to treat hyphen as a normal character, see [here](https://github.com/skywind3000/z.lua/wiki/FAQ#how-to-input-a-hyphen---in-the-keyword-). - 1.7.3 (2019-09-07): use [lua-filesystem](http://keplerproject.github.io/luafilesystem/) package if possible when `$_ZL_USE_LFS` is `1`. - 1.7.2 (2019-08-01): Improve bash/zsh shell compatibility by [@barlik](https://github.com/barlik). diff --git a/z.lua.plugin.zsh b/z.lua.plugin.zsh index 29e9e70..ce74e34 100644 --- a/z.lua.plugin.zsh +++ b/z.lua.plugin.zsh @@ -29,6 +29,8 @@ if [[ -z "$_ZL_NO_ALIASES" ]]; then alias zc='z -c' alias zf='z -I' alias zb='z -b' + alias zbi='z -b -i' + alias zbf='z -b -I' alias zh='z -I -t .' alias zzc='zz -c' fi