Skip to content

Commit db4575c

Browse files
author
jupengfei
committed
修改rd默认打开当前所在的目录,并且修改目录名
1 parent ce72a28 commit db4575c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

shell/rd_init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# root directory
2-
export RD_ROOT_DIR=/opt/jupengfei/.cmd_gui
2+
export RD_ROOT_DIR=/opt2/jupengfei/.rmd
33
export HOST_OS=linux
44

55
# lua environment
@@ -17,7 +17,7 @@ source $RD_ROOT_DIR/shell/alias.sh
1717
export RD_SERVER_IP=
1818
export RD_SERVER_PORT=30130
1919

20-
export RD_CLIENT_IP=192.168.14.171
20+
export RD_CLIENT_IP=172.25.105.14
2121
export RD_CLIENT_PORT=30130
2222

2323
# server address

src/rd.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ local custom_remote_command = {
3636
local cur_path = get_cur_path()
3737
local file = nil
3838

39+
-- open current directory by default
40+
if (#tb <= 0) then
41+
table.insert(tb, ".")
42+
end
43+
3944
if (#tb > 0) then
4045
file = table.concat(tb, " ")
4146
end

0 commit comments

Comments
 (0)