From 151d0410e273836dc59922ac489188b098078c91 Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 23 Dec 2021 21:37:25 +0000 Subject: Add mcd function --- .config/fish/config.fish | 1 + 1 file changed, 1 insertion(+) (limited to '.config/fish/config.fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index b0f8986..9512f47 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -42,6 +42,7 @@ alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" -- function cheat; curl -s "http://cheat.sh/$argv"; end function fractodec; math -s2 "$argv" ; end function hextodec; math "0x$argv" ; end +function mcd; mkdir -p "$argv" && cd "$argv" ; end function macaddr; printf "%s\n" (curl -s https://api.macvendors.com/$argv); end function mergeinto; rsync --progress --remove-source-files -av "$argv[1]" "$argv[2]" && find "$argv[1]" -empty -delete ; end function mount-rw; sudo mount -o rw "$argv[1]" "$argv[2]"; end -- cgit v1.2.3