aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author我没有抓狂 <a844620174@gmail.com>2020-06-14 13:54:57 +0800
committerjixiuf <jixiuf@qq.com>2020-09-21 13:21:58 +0800
commit7c6bc8f69b6ebebe26df0b965b4dec04ba9d0008 (patch)
tree2d9c052be4ee43e94e6ed12bd38e1c7df04056c7
parent14e4afdfc160b2e625c3e483d169786ac00cb4fe (diff)
Set default open path to the current path
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 192192c..839eecf 100644
--- a/README.md
+++ b/README.md
@@ -523,7 +523,7 @@ Now we can write shell functions to call the ones defined in `vterm-eval-cmds`.
```sh
find_file() {
- vterm_cmd find-file "$(realpath "$@")"
+ vterm_cmd find-file "$(realpath "${@:-.}")"
}
say() {
@@ -565,7 +565,7 @@ Then add the command in your `.bashrc` file.
```sh
open_file_below() {
- vterm_cmd find-file-below "$(realpath "$@")"
+ vterm_cmd find-file-below "$(realpath "${@:-.}")"
}
```