summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2021-12-23 21:37:25 +0000
committerPeter2021-12-23 21:37:25 +0000
commit151d0410e273836dc59922ac489188b098078c91 (patch)
tree2b852761e752adb4bc2683c3e89a828eb526d8f4
parent7477eec31e45e765f20761c1b39e35e613284495 (diff)
downloaddotfiles-151d0410e273836dc59922ac489188b098078c91.tar.gz
dotfiles-151d0410e273836dc59922ac489188b098078c91.tar.bz2
dotfiles-151d0410e273836dc59922ac489188b098078c91.zip
Add mcd function
-rw-r--r--.config/fish/config.fish1
1 files changed, 1 insertions, 0 deletions
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