mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
Freakin awesome gvm list
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
if [[ $1 == "list" ]]; then
|
||||
ls -1 ~/.gvm/gos
|
||||
CUR_VER=`readlink ~/.gvm/gos/default | awk '{ n=split($1,path,"/"); print path[n] }'`
|
||||
ls -1 ~/.gvm/gos | grep ^go | sed 's/^/ /g' | sed 's/^ '$CUR_VER'/=> '$CUR_VER'/g' #'s/^/foo-/g'
|
||||
else
|
||||
echo "Please use gvm [action] to call this file"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user