give a nice go layout for direnv
This commit is contained in:
parent
34beba67c2
commit
8331d0c717
1 changed files with 9 additions and 0 deletions
|
|
@ -33,6 +33,15 @@ with lib;
|
|||
echo "CREATE DATABASE $USER;" | postgres --single -E postgres
|
||||
fi
|
||||
}
|
||||
|
||||
layout_go() {
|
||||
export GOPATH="$(direnv_layout_dir)/tmp/golibs"
|
||||
if [[ ! -d "$GOPATH" ]]; then
|
||||
mkdir -p $GOPATH
|
||||
fi
|
||||
|
||||
export PATH="$GOPATH/bin:$PATH"
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue