this repo has no description

.config/fish: add dtouch function

that creates the directories needed to touch the file

+13
+13
private_dot_config/private_fish/functions/dtouch.fish
··· 1 + function dtouch 2 + if test (count $argv) -eq 0 3 + echo "Usage: dtouch <filepath>..." 4 + return 1 5 + end 6 + 7 + for filepath in $argv 8 + set dirpath (dirname $filepath) 9 + 10 + mkdir -p $dirpath 11 + touch $filepath 12 + end 13 + end