diff --git a/devc.sh b/devc.sh index 4c55f83..08dc9ba 100755 --- a/devc.sh +++ b/devc.sh @@ -63,6 +63,11 @@ param_args() { arg "-e DISPLAY=$DISPLAY" arg "-e XAUTHORITY=/run/user/1000/.Xauthority" ;; + -mnt) # Mount directory. + shift + arg "-w /mnt/" + arg "-v $1:/mnt/$([ ! -d "$1" ] && echo 'file')" + ;; *) # Use unknown arguments a podman arguments. arg "$1" ;; esac