~razzi/fish-functions

c852c64d73eaf145e7f8185ddb5b5cc2cb562547 — Razzi Abuissa 10 months ago 9451adf
Remove magical "that" and "there" functions
7 files changed, 0 insertions(+), 26 deletions(-)

D functions/cd-that.fish
D functions/cd-there.fish
D functions/edit-that.fish
D functions/funced-that.fish
D functions/last-thing.fish
D functions/source-that.fish
D functions/vim-that.fish
D functions/cd-that.fish => functions/cd-that.fish +0 -3
@@ 1,3 0,0 @@
function cd-that
    cd (last-thing)
end

D functions/cd-there.fish => functions/cd-there.fish +0 -3
@@ 1,3 0,0 @@
function cd-there
    cd (history --max=1 | last-col)
end

D functions/edit-that.fish => functions/edit-that.fish +0 -3
@@ 1,3 0,0 @@
function edit-that
    edit (last-thing)
end

D functions/funced-that.fish => functions/funced-that.fish +0 -3
@@ 1,3 0,0 @@
function funced-that
    funced -s (echo $history[1] | coln 1)
end

D functions/last-thing.fish => functions/last-thing.fish +0 -3
@@ 1,3 0,0 @@
function last-thing --description 'Guess the target from the last command'
    history -1 | last-word | string replace '~' $HOME
end

D functions/source-that.fish => functions/source-that.fish +0 -3
@@ 1,3 0,0 @@
function source-that
    source (last-thing)
end

D functions/vim-that.fish => functions/vim-that.fish +0 -8
@@ 1,8 0,0 @@
function vim-that
    set target (last-thing)
    if file-exists $target
        vim $target
    else
        echo Last word of command was not a file: $target
    end
end