#!/bin/sh # $YakumoLabs$ case $1 in -h|--help) echo "usage: $0 [-l] [-u profile-name]" exit 0 ;; -l|--list) echo "List of available profiles" find "${HOME}/.mblaze" -name "profile-*" -type f ;; -u|--use) echo "Using profile $2" ln -sf "${HOME}/.mblaze/profile-$2" "${HOME}/.mblaze/profile" ;; *) echo "Unrecognized switch $1" ;; esac