~razzi/fish-functions

9451adf47a23452e3cfbbf3a58694c777b3e9387 — Razzi Abuissa 2 months ago bccdbda
Make eat move files to the parent directory of the argument

Rather than always the current directory. Closes #15.
1 files changed, 3 insertions(+), 1 deletions(-)

M functions/eat.fish
M functions/eat.fish => functions/eat.fish +3 -1
@@ 9,8 9,10 @@ function eat --argument dir
        end
    end

    set target (dirname $dir)

    for f in $files_to_move
        mv $f .
        mv $f $target
    end

    rmdir $dir