You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
355 B
Bash
20 lines
355 B
Bash
#!/usr/bin/env bash
|
|
|
|
function gvm_prompt() {
|
|
if [[ "$1" == "g" ]]; then
|
|
echo "$gvm_go_name"
|
|
elif [[ "$1" == "ps" ]]; then
|
|
echo "$gvm_pkgset_name"
|
|
else
|
|
if [[ $gvm_pkgset_name != "" ]]; then
|
|
if [[ $gvm_pkgset_name != "global" ]]; then
|
|
echo "$gvm_go_name@$gvm_pkgset_name"
|
|
return 0
|
|
fi
|
|
fi
|
|
echo "$gvm_go_name"
|
|
fi
|
|
}
|
|
|
|
gvm_prompt "$@"
|