Add java support
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -7,16 +7,13 @@ pkgs.mkShell {
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export P10K_EXTRA_RIGHT_PROMPT_ELEMENTS=(
|
||||
goenv
|
||||
"''${P10K_EXTRA_RIGHT_PROMPT_ELEMENTS[@]}"
|
||||
)
|
||||
|
||||
if git rev-parse --is-inside-work-tree &> /dev/null && ! grep -q "^\.go$" .gitignore .git/info/exclude; then
|
||||
echo ".go" >> .git/info/exclude
|
||||
export GOPATH="$(git rev-parse --show-toplevel)/.go"
|
||||
if git rev-parse --is-inside-work-tree &> /dev/null; then
|
||||
TOP="$(git rev-parse --show-toplevel)"
|
||||
if ! grep -q "^\.go$" "$TOP/.gitignore" "$TOP/.git/info/exclude"; then echo ".go" >> "$TOP/.git/info/exclude"; fi
|
||||
else
|
||||
export GOPATH="$(pwd)/.go"
|
||||
TOP="$(pwd)"
|
||||
fi
|
||||
|
||||
export GOPATH="$TOP/.go"
|
||||
'';
|
||||
}
|
||||
|
Reference in New Issue
Block a user