diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-12-11 11:24:29 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-12-11 11:24:29 +0800 |
commit | 562b7219a901a05af940bfa9b1568fcf059c6441 (patch) | |
tree | 013b2a645e1d475da43bef472ba6b54897388013 | |
parent | 48e0cbc84270a462e09917ac694be735459d11d0 (diff) |
update
-rw-r--r-- | alias | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,10 +53,10 @@ _move_to_tmp() { | |||
53 | } | 53 | } |
54 | prompt() { | 54 | prompt() { |
55 | TMPFILE=$(mktemp) | 55 | TMPFILE=$(mktemp) |
56 | echo -e $1 > $TMPFILE \ | 56 | echo -e $1 >$TMPFILE \ |
57 | && vim $TMPFILE \ | 57 | && vim $TMPFILE \ |
58 | && sed -i '$ q; s/$/ \\/' $TMPFILE \ | 58 | && sed -i '$ q; s/$/ \\/' $TMPFILE \ |
59 | && eval $(cat $TMPFILE | tee /dev/tty) | 59 | && eval $( <$TMPFILE tee /dev/tty ) |
60 | rm $TMPFILE | 60 | rm $TMPFILE |
61 | } | 61 | } |
62 | 62 | ||