You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
268 B

  1. function re_search
  2. set -l tmp (mktemp -t fish.XXXXXX)
  3. set -x SEARCH_BUFFER (commandline -b)
  4. re-search > $tmp
  5. set -l res $status
  6. commandline -f repaint
  7. if [ -s $tmp ]
  8. commandline -r (cat $tmp)
  9. end
  10. if [ $res = 0 ]
  11. commandline -f execute
  12. end
  13. rm -f $tmp
  14. end