summaryrefslogtreecommitdiff
path: root/scripts/deploy/jvn.sh
blob: 25c6ad506f954866063747679a866cf9b52e82e1 (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
#!bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

# Completion script
if [ -n "$BASH_VERSION" ]; then
    # Bash
    if [ -f "$SCRIPT_DIR/comp/jvn_bash.sh" ]; then
        source "$SCRIPT_DIR/comp/jvn_bash.sh"
    fi
elif [ -n "$ZSH_VERSION" ]; then
    # Zsh
    if [ -f "$SCRIPT_DIR/comp/jvn_zsh.sh" ]; then
        source "$SCRIPT_DIR/comp/jvn_zsh.sh"
    fi
elif [ -n "$FISH_VERSION" ]; then
    # Fish
    if [ -f "$SCRIPT_DIR/comp/jvn_fish.fish" ]; then
        source "$SCRIPT_DIR/comp/jvn_fish.fish"
    fi
fi

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