Skip to content

Commit 9c70fa6

Browse files
author
yotsuyanagi
committed
add history before execute command
1 parent 2668ae7 commit 9c70fa6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.ja.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jjfile.py のありかは、カレントディレクトリと親ディレクト
5555
RESULT_FILE=/tmp/_jj_result
5656
jj-menu --result-file=${RESULT_FILE}
5757
if [ $? == 0 ]; then
58-
source ${RESULT_FILE}
5958
history -s `cat ${RESULT_FILE}`
59+
source ${RESULT_FILE}
6060
fi
6161
}
6262

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ And register shell function (Optional)
4848
RESULT_FILE=/tmp/_jj_result
4949
jj-menu --result-file=${RESULT_FILE}
5050
if [ $? == 0 ]; then
51-
source ${RESULT_FILE}
5251
history -s `cat ${RESULT_FILE}`
52+
source ${RESULT_FILE}
5353
fi
5454
}
5555

activate-jj.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function jj(){
33
RESULT_FILE=/tmp/_jj_result
44
jj-menu --result-file=${RESULT_FILE}
55
if [ $? == 0 ]; then
6-
source ${RESULT_FILE}
76
history -s `cat ${RESULT_FILE}`
7+
source ${RESULT_FILE}
88
fi
99
}

jj_menu/jj_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
RESULT_FILE=/tmp/_jj_result
4646
jj-menu --result-file=${RESULT_FILE}
4747
if [ $? == 0 ]; then
48-
source ${RESULT_FILE}
4948
history -s `cat ${RESULT_FILE}`
49+
source ${RESULT_FILE}
5050
fi
5151
}
5252

0 commit comments

Comments
 (0)