mr-pmillz / pimp-my-shell Goto Github PK
View Code? Open in Web Editor NEWgo program that installs and customizes ohmyzsh tmux vim via various plugins and other nice to haves
License: GNU General Public License v3.0
go program that installs and customizes ohmyzsh tmux vim via various plugins and other nice to haves
License: GNU General Public License v3.0
So when program is ran with no args, by default it will do a full installation
Can use cobra or mk-ideal cli library.
Cobra will require significant refactoring of the project.
Describe the bug
I had followed the instructions on how to install for mac (git clone
, go build
--> ./pimp-my-shell
) and thought it had installed without any errors. However, in restarting my terminal, nothing loaded. When I try to rerun ./pimp-my-shell
I get an error:
goroutine 1 [running]:
github.com/mr-pmillz/pimp-my-shell/zsh.updateZSHPlugins({0xc000032140, 0x1e})
~/Downloads/pimp-my-shell/zsh/zsh.go:29 +0x615
github.com/mr-pmillz/pimp-my-shell/zsh.InstallOhMyZsh({0x155b888, 0x6}, 0xc000212d60)
~/Downloads/pimp-my-shell/zsh/zsh.go:197 +0x7be
main.pimpMyShell({0x155b888, 0x6}, 0xc000212d60, 0x1?)
~Downloads/pimp-my-shell/main.go:73 +0x26a
main.main()
This occurs when attempting to run in a regular iterm2 terminal, but also attempted on a Mac standard install terminal
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/mr-pmillz/pimp-my-shell.git
cd pimp-my-shell
go build
./pimp-my-shell
./pimp-my-shell
againDesktop (please complete the following information):
Describe the bug
I'm required to run as sudo
in order to successfully install. If not run as sudo, p10k configure
will not run, and error messages appear. Is there any way to install without requiring sudo
perms?
To Reproduce
Steps to reproduce the behavior:
./pimp-my-shell
Screenshots
First error appears:
Error messages appearing while running the install:
vim-go: gotags not found. Installing github.com/jstemmer/gotags@master to folder
^/usr/local//bin/
vim-go: Error installing github.com/jstemmer/gotags@master: go: writing stat cac
he: mkdir /usr/local/pkg/mod/cache/download/github.com/jstemmer/gotags: permissi
on denied
vim-go: go: downloading github.com/jstemmer/gotags v1.4.2-0.20180202163508-7de70
45e69ff
vim-go: go: github.com/jstemmer/gotags@master: mkdir /usr/local/pkg/mod/cache/do
wnload/github.com/jstemmer/gotags: permission denied
vim-go: impl not found. Installing github.com/josharian/impl@main to folder /usr
/local//bin/
vim-go: Error installing github.com/josharian/impl@main: go: writing stat cache:
mkdir /usr/local/pkg/mod/cache/download/github.com/josharian/impl: permission d
enied
vim-go: go: downloading github.com/josharian/impl v1.2.1-0.20230412175720-30a6be
b5f7cc
vim-go: go: github.com/josharian/impl@main: mkdir /usr/local/pkg/mod/cache/downl
oad/github.com/josharian/impl: permission denied
Desktop (please complete the following information):
ARM64 & AMD64 cases are incorrect - swapped?
For some reason was always DLing the wrong go CPU type - take a look
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
localio/localio.go:188: func DownloadAndInstallLatestVersionOfGolang(homeDir string) error { โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
188โฎ 188โ latestGoVersion := string(goversion)
189โฎ 189โ
190โฎ 190โ switch GetCPUType() {
191โฎ โ case "AMD64":
โฎ 191โ case "ARM64":
192โฎ 192โ armGoURL := fmt.Sprintf("https://dl.google.com/go/%s.linux-arm64.tar.gz", latestGoVersion)
193โฎ 193โ dest := fmt.Sprintf("%s/%s", homeDir, path.Base(armGoURL))
194โฎ 194โ if err = DownloadFile(dest, armGoURL); err != nil {
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
localio/localio.go:199: func DownloadAndInstallLatestVersionOfGolang(homeDir string) error { โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
199โฎ 199โ return err
200โฎ 200โ }
201โฎ 201โ
202โฎ โ case "ARM64":
โฎ 202โ case "AMD64":
203โฎ 203โ amdGoURL := fmt.Sprintf("https://dl.google.com/go/%s.linux-amd64.tar.gz", latestGoVersion)
204โฎ 204โ dest := fmt.Sprintf("%s/%s", homeDir, path.Base(amdGoURL))
205โฎ 205โ if err = DownloadFile(dest, amdGoURL); err != nil {
(END)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.