summaryrefslogtreecommitdiff
path: root/scripts/cli.sh
blob: 454bd6fda58cb036d1db12e017285c42867f3551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

# Get the real directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

##############
### CONFIG ###
##############

# Use JV_LANG to set CLI language
# Supported: en, zh-CN
# export JV_LANG = en

###############
### ALIASES ###
###############

alias jj='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

##################
### ENVIREMENT ###
##################

if [ -d "$SCRIPT_DIR/bin" ]; then
    export PATH="$SCRIPT_DIR/bin:$PATH"
fi