19 lines
499 B
Bash
Executable file
19 lines
499 B
Bash
Executable file
#!/bin/bash
|
|
# 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
|
|
|
|
SHORT_FILE=$HOME/.shortcuts
|
|
|
|
|