drv/go: set PS1 name
This commit is contained in:
parent
0c01f464b2
commit
f75920ce70
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ let
|
|||
];
|
||||
goShellHook = { goPackages, name }: ''
|
||||
goname=${goPackages.go.version}_$name
|
||||
setPS1 $goname
|
||||
export GOROOT=${goPackages.go}/share/go
|
||||
export GOPATH="$HOME/.gopath_$goname"
|
||||
export PATH="$HOME/.gopath_$goname/bin:$PATH"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue