Skip to content

Commit c6d79bf

Browse files
Takeshi YotsuyanagiTakeshi Yotsuyanagi
authored andcommitted
Add "history -s" to shell function
1 parent 81a84b7 commit c6d79bf

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

README.ja.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ menu 変数がメニューとなります。
5151
jj-menu --result-file=${RESULT_FILE}
5252
if [ $? == 0 ]; then
5353
source ${RESULT_FILE}
54+
history -s `cat ${RESULT_FILE}`
5455
fi
5556
}
5657

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ And register shell function (Optional)
4646
jj-menu --result-file=${RESULT_FILE}
4747
if [ $? == 0 ]; then
4848
source ${RESULT_FILE}
49+
history -s `cat ${RESULT_FILE}`
4950
fi
5051
}
5152

activate-jj.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ function jj(){
44
jj-menu --result-file=${RESULT_FILE}
55
if [ $? == 0 ]; then
66
source ${RESULT_FILE}
7+
history -s `cat ${RESULT_FILE}`
78
fi
89
}

jj_menu/jj_menu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
jj-menu --result-file=${RESULT_FILE}
4747
if [ $? == 0 ]; then
4848
source ${RESULT_FILE}
49+
history -s `cat ${RESULT_FILE}`
4950
fi
5051
}
5152

0 commit comments

Comments
 (0)