#!/bin/sh # short: Creates shortcuts that can be used anywhere. # Can also be used as an alternative for "alias". # # Example usage: # Add a shortcut: short -A dev "/home/john/Development" # Print shortcut content: short dev -> "/home/john/Development" # Remove shortcut: short -D dev # # One could use this to do things like: # cp -R files $(short dev) # cd $(short www) # ssh $(short server) # # Uses a file named .shortcuts in $HOME DAISY_INTERNAL=1 . $(dirname $(realpath $0))/daisy.source short_config_dir="$DAISY_CONFIG_FOLDER/.shortcuts"