fork/puffer-fish

git clone https://git.julia.blue/fork/puffer-fish

nickeb96Fix expand_dots not working if the cmd line starts with a dash12d062e

v1.0.0
308 B9 linesraw
1function _puffer_fish_expand_dots -d 'expand ... to ../.. etc'
2    set -l cmd (commandline --cut-at-cursor)
3    set -l split (string split -- ' ' $cmd)
4    if string match --quiet --regex -- '^(\.\./)*\.\.$' $split[-1]
5        commandline --insert '/..'
6    else
7        commandline --insert '.'
8    end
9end