Posts

Showing posts from February 12, 2019

1401

Image
Annus 1401 e serie paginarum brevium de annis. Millennia: millennium 1 · millennium 2 · millennium 3 Saecula: saeculum 14 · saeculum 15 · saeculum 16 Anni: (1400) · 1401 · 1402 · 1403 · 1404 · 1405 · 1406 · 1407 · 1408 · 1409 · 1410 · (1411) 1401 = MCDI Eventa | Eventa huius anni desiderata (additis eventibus, hanc formulam remove) Nati | 27 Octobris - Catharina Principissa Franciae et regina Angliae; mortua est anno 1437. Mortui | Mortui huius anni desiderati (additis mortuis, hanc formulam remove, vide etiam 0 fere paginas in categoria Categoria:Mortui 1401) This page is only for reference, If you need detailed information, please check here

How to add subdir bin of first dir in GOPATH to PATH

Image
1 echo $GOPATH will print: /mnt/star/program/go/package:/mnt/star/git_repository/workspace/go_workplace There are 2 dir, I want to append the first dir's sub dir bin/ to $PATH . If I write $PATH=$PATH:$GOPATH/bin , then actually it append 2 dir to $PATH : /mnt/star/program/go/package This only contains dirs, it should be /mnt/star/program/go/package/bin . /mnt/star/git_repository/workspace/go_workplace/bin This actually shouldn't be added to $PATH . BTW, there are cases that $GOPATH only contains one dir, in that case simply append $GOPATH/bin will work. I am looking for a solution that fit for both cases. So, how to write this in bash config file? linux bash shell share | im...