- Many fixes to sourcing, now will always resolve to base dir.
- 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.
This commit is contained in:
parent
b5c8a3f894
commit
0912f2d3d4
13 changed files with 1143 additions and 33 deletions
13
short
13
short
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
#!/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
|
||||
# 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)
|
||||
|
|
@ -14,6 +14,9 @@
|
|||
#
|
||||
# Uses a file named .shortcuts in $HOME
|
||||
|
||||
SHORT_FILE=$HOME/.shortcuts
|
||||
DAISY_INTERNAL=1
|
||||
. $(dirname $(realpath $0))/daisy.source
|
||||
|
||||
SHORT_FILE="$DAISY_CONFIG_FOLDER/.shortcuts"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue