bash-my-gcp
bash-my-gcp copied to clipboard
Installing Bash-My-GCP in zsh
Hi, Please consider this a feature request or a How to do guide.
Please let us know how to use this for oh-my-Zsh,
Thanks for raising this! zsh support is something that was already on my radar just not had the time to look in to it properly yet
i did a quick test with this just now and I noticed when I pulled this in to a default oh-my-zsh install the gcp command already taken by the git cherrypick alias provided by the built in git module so there may be some changes need to make that work right
Looking forward to that 😄
@mcrmonkey are you moving forward with this?
I've created a branch with the changes needed to get this running via oh-my-zsh
You'll need to pull the test branch in to your oh-my-zsh plugins directory and add it to your plugins list to use it:
cd ~/.oh-my-zsh/plugins
git clone -b bmg-zsh https://github.com/mcrmonkey/bash-my-gcp
Then add it to your plugin list in ~/.zshrc
Note: The git plugin has already claimed the gcp function name so gcp function isn't going to work for the moment if you're also loading the git plugin
@chronograph3r, @Rahulsharma0810 If you have the time I'd appreciate any testing you can do with this
wow this is great will try it rn, gcloud is crazy long
OK, I don't know if this project is still alive, but I tried to use zinit with it and it failed, looks like the paths are not quite right for that installation. It works fine with a manual oh-my-zsh installation. https://github.com/zdharma-continuum/zinit
You can try it yourself with these lines:
# to pick up the branch
zinit ice bpick"bmg-zsh"
zinit light mcrmonkey/bash-my-gcp
The error is in the loader.sh saying
Downloading mcrmonkey/bash-my-gcp…
Cloning into '/Users/rich/.zinit/plugins/mcrmonkey---bash-my-gcp'...
▃ ███████████ OBJ: 100, PACK: 139/139, COMPR: 100%, REC: 100%, RES: 100%
Note: Compiling: loader.sh… OK.
/Users/rich/.zinit/plugins/mcrmonkey---bash-my-gcp/loader.sh:4: no matches found: ./lib/*-functions
In looking at this I think the path is not quite right