~razzi/fish-functions

96e0ddc08f5c3e76c92b224a4b9056f357e05e6c — Razzi Abuissa 2 months ago 60e3a7f
More janky function cleanup
3 files changed, 0 insertions(+), 12 deletions(-)

D functions/previous-command.fish
D functions/save-abbr.fish
D functions/thats.fish
D functions/previous-command.fish => functions/previous-command.fish +0 -3
@@ 1,3 0,0 @@
function previous-command
    history --max=1
end

D functions/save-abbr.fish => functions/save-abbr.fish +0 -5
@@ 1,5 0,0 @@
function save-abbr --argument abbreviation
    set expansion "$argv[2..-1]"
    abbr $abbreviation $expansion
    echo "abbr $abbreviation \"$expansion\"" >>~/.fish_abbrs.fish
end

D functions/thats.fish => functions/thats.fish +0 -4
@@ 1,4 0,0 @@
function thats
    abbr -a (previous-command) $argv
    $argv
end