summaryrefslogtreecommitdiffstats
path: root/env.fish
blob: 428c5df5e2bcf183058de505469354c7db8fa0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set -x hscloud_root (dirname (realpath (status -f)))

if test ! -e "$hscloud_root/WORKSPACE"
    echo "Could not find WORKSPACE"
    exit 1
end

set hscloud_path $hscloud_root/bazel-bin/tools $hscloud_root/bazel-bin/cluster/tools
if not string match -q $hscloud_path $PATH
    echo "OwO"
    set -x PATH $hscloud_path $PATH
end

function gpg-unlock
    echo "test" | gpg2 --sign --batch --no-tty -o /dev/null
end