Added run alias and some random bash scripts
This commit is contained in:
12
aliases.sh
Normal file
12
aliases.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT_DIR="$(dirname $(realpath "$0"))"
|
||||
|
||||
function run() {
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage: $0 <category> <script> [args...]"
|
||||
return
|
||||
fi
|
||||
bash "$SCRIPT_DIR/$1/$2.sh" ${@:3}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user