GithubHelp home page GithubHelp logo

mr-pmillz / pimp-my-shell Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 6.0 1.88 MB

go program that installs and customizes ohmyzsh tmux vim via various plugins and other nice to haves

License: GNU General Public License v3.0

Go 51.35% Shell 43.30% Roff 0.55% Vim Script 4.80%
awesome-terminal go golang ohmytmux ohmyzsh pimp-my-shell power-user shell terminal tmux vim zsh

pimp-my-shell's Introduction

Hi ๐Ÿ‘‹, I'm Phil Miller

I enjoy Cyber Security, Devops Engineering, and Automation

mr-pmillz

mr-pmillz

proofconcept9

wildstyle9

Connect with me:

proofconcept9 phillip-miller1992 stack-overflow hackerone

Languages and Tools:

aws bash docker elasticsearch git go heroku jenkins kibana kubernetes linux mariadb mongodb mysql postman python



mr-pmillz

ย mr-pmillz

mr-pmillz

pimp-my-shell's People

Contributors

dependabot[bot] avatar mr-pmillz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pimp-my-shell's Issues

Runtime error index out of range[1] with length 0 when rerunning ./pimp-my-shell

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:

  1. git clone https://github.com/mr-pmillz/pimp-my-shell.git
  2. cd pimp-my-shell
  3. go build
  4. ./pimp-my-shell
  5. Let the install process occur. At this point there was no noticeable change to my terminal, even after restart.
  6. Attempt to run ./pimp-my-shell again
  7. error message

Screenshots
image

Desktop (please complete the following information):

  • Device: Macbook Pro 2018
  • OS: MacOS Monterey 12.6.2
  • iTerm2 Version: 3.4.18
  • Mac Terminal: 2.12.7

Permissions Errors when running `pimp-my-shell`

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:

  1. Download pimp-my-shell v 2.1.3
  2. Run ./pimp-my-shell
  3. errors appear during install.

Screenshots

First error appears:

image

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):

  • OS: Ubuntu 22.04.3 LTS jammy
  • pimp-my-shell v 2.1.3

ARM64 & AMD64 cases are incorrect - swapped?

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.