aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-02-14 23:57:25 +0800
committertypebrook <typebrook@gmail.com>2020-02-14 23:57:25 +0800
commitdc75fe677587a5a9c08c1b166029f0597c90272f (patch)
treee56311ef84ef90d4e7fba87c4c959eec4094ecd0 /alias
parent8e75e263c1bc24a7c11024d82bb0ae458296339a (diff)
update
Diffstat (limited to 'alias')
-rw-r--r--alias10
1 files changed, 6 insertions, 4 deletions
diff --git a/alias b/alias
index a72c24c..71b490e 100644
--- a/alias
+++ b/alias
@@ -43,10 +43,12 @@ _move_to_tmp() {
43 mv $@ /tmp 43 mv $@ /tmp
44} 44}
45prompt() { 45prompt() {
46 TMPFILE=$(mktemp); echo -e $1 > $TMPFILE && \ 46 TMPFILE=$(mktemp)
47 vim $TMPFILE && \ 47 echo -e $1 > $TMPFILE \
48 sed -i '$ q; s/$/ \\/' $TMPFILE && \ 48 && vim $TMPFILE \
49 eval $(cat $TMPFILE | tee /dev/tty) 49 && sed -i '$ q; s/$/ \\/' $TMPFILE \
50 && eval $(cat $TMPFILE | tee /dev/tty)
51 rm $TMPFILE
50} 52}
51 53
52# package 54# package