summaryrefslogtreecommitdiff
path: root/scripts/cli.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cli.sh')
-rw-r--r--scripts/cli.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/cli.sh b/scripts/cli.sh
new file mode 100644
index 0000000..ba21c54
--- /dev/null
+++ b/scripts/cli.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Get the real directory where this script is located
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+
+# Aliases
+alias jvh='jv here'
+alias jvu='jv update'
+alias jvt='jv track'
+
+# Completion
+if [ -f "$SCRIPT_DIR/completion_jv.sh" ]; then
+ source "$SCRIPT_DIR/completion_jv.sh"
+fi
+if [ -f "$SCRIPT_DIR/completion_jvv.sh" ]; then
+ source "$SCRIPT_DIR/completion_jvv.sh"
+fi
+
+# Add bin directory to PATH
+if [ -d "$SCRIPT_DIR/bin" ]; then
+ export PATH="$SCRIPT_DIR/bin:$PATH"
+fi