X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=bash-selector.sh;fp=bash-selector.sh;h=6706c04e14b2e5fa134b71bf278306d430aa31d2;hp=9cae9a212a086b7d8786172ccc1b9dfed6c8cf3e;hb=6c530f44042eda17d01146401d16d4777504555d;hpb=fd647fdff287aa5e7f6579c6e1b25204f819584b diff --git a/bash-selector.sh b/bash-selector.sh index 9cae9a2..6706c04 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -73,7 +73,7 @@ function selector-cd () { TMP=$(mktemp /tmp/selector-cd.XXXXXX) tail -$((SELECTOR_CD_HISTORY_SIZE-1)) < "${SELECTOR_CD_HISTORY}" > "${TMP}" cat "${TMP}" > "${SELECTOR_CD_HISTORY}" - rm -f "${TMP}" + \rm -f "${TMP}" fi echo "${PWD}" | sed -e "s!^${HOME}!~!" >> "${SELECTOR_CD_HISTORY}"