- All scripts are again `sh` compatible. - Binbox overhaul, symlinks finally work just like `busybox`. - Error checking to some files like `sw` and `own`. TODO: Make it pretty and make `short` already.
22 lines
577 B
Bash
Executable file
22 lines
577 B
Bash
Executable file
#!/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_FILE="$DAISY_CONFIG_FOLDER/.shortcuts"
|
|
|
|
|