diff options
| author | 我没有抓狂 <a844620174@gmail.com> | 2020-06-14 13:54:57 +0800 |
|---|---|---|
| committer | jixiuf <jixiuf@qq.com> | 2020-09-21 13:21:58 +0800 |
| commit | 7c6bc8f69b6ebebe26df0b965b4dec04ba9d0008 (patch) | |
| tree | 2d9c052be4ee43e94e6ed12bd38e1c7df04056c7 | |
| parent | 14e4afdfc160b2e625c3e483d169786ac00cb4fe (diff) | |
Set default open path to the current path
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 "${@:-.}")" } ``` |
