From 83b0714b15da0852b4dbcd7e561e77bca2be8a18 Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 21 Feb 2022 21:30:36 +0000 Subject: Add sed dos2unix function --- .config/fish/config.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index b48cedf..4594c3e 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -39,6 +39,7 @@ alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" -- # Functions function backup; tar -zcvf (basename $argv)_backup-(date +%F-%H%M%S).tar.gz $argv ; end function cheat; curl -s "http://cheat.sh/$argv"; end +function dos2unix; sed -i 's/\r//' "$argv"; end function fractodec; math -s2 "$argv" ; end function hextodec; math "0x$argv" ; end function mcd; mkdir -p "$argv" && cd "$argv" ; end -- cgit v1.2.3