#!/bin/sh # Print a directory to use for Stow if [ $# -gt 0 ]; then dir=$(realpath "$1") else dir=$PWD fi echo "/usr/local/stow/$(basename "$dir")"