cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.76k stars 176 forks source link

Mcfly + zsh + fig #301

Open pitosalas opened 1 year ago

pitosalas commented 1 year ago

Previously I was enjoying mcfly with zsh all day long and was happy.

Then I installed fig (also very nice) and mcfly doesn't launch when I type ^r

navazjm commented 1 year ago

Ah, never heard of fig until now. I just installed it and imported my dotfiles into fig and seems to run McFly perfectly for me.

Here is a link on how to import your dotfiles.

In the above link, it also mentions to remove or comment out the original ~/.zshrc, ~/.zprofile, or ~/.zshenv file to prevent things from loading twice. I did not do this and McFly still ran for me. However, it may help you.

If you have already imported your dotfiles, I would try adding a path to cargo and see if that solves your issue.

Screenshot 2022-11-24 at 10 55 10 PM

Also be sure to run the following command after making changes in the fig dashboard.

fig source

Unfortunately, I do not think this is an issue with McFly so it may just take time tinkering with Fig to get it to work.

pitosalas commented 1 year ago

Thanks. You’re right, in was able to tinker a lot to get it to work. Nice app though, right?Pito Salas Computer ScienceBrandeis Univeristy On Nov 25, 2022, at 12:02 AM, Michael Navarro @.***> wrote: Ah, never heard of fig until now. I just installed it and imported my dotfiles into fig and seems to run McFly perfectly for me. Here is a link on how to import your dotfiles. In the above link, it also mentions to remove or comment out the original ~/.zshrc, ~/.zprofile, or ~/.zshenv file to prevent things from loading twice. I did not do this and McFly still ran for me. However, it may help you. If you have already imported your dotfiles, I would try adding a path to cargo and see if that solves your issue.

Also be sure to run the following command after making changes in the fig dashboard. fig source Unfortunately, I do not think this is an issue with McFly so it may just take time tinkering with Fig to get it to work.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

pitosalas commented 1 year ago

Hi Again,

It broke again. I know it's not mcfly's bug but maybe you can help me with a question.

Why would this happen:

~ $(mcfly init zsh) zsh: no such file or directory: #!/bin/zsh

~ ls /bin/zsh /bin/zsh

Something wrong with the path but I just understand how it could happen.

Pito

On Nov 25, 2022, at 6:07 AM, Pito Salas @.***> wrote:

Thanks. You’re right, in was able to tinker a lot to get it to work. Nice app though, right?

Pito Salas Computer Science Brandeis Univeristy

On Nov 25, 2022, at 12:02 AM, Michael Navarro @.***> wrote:



Ah, never heard of fig until now. I just installed it and imported my dotfiles into fig and seems to run McFly perfectly for me.

Here is a link on how to import your dotfiles. https://fig.io/user-manual/dotfiles/import In the above link, it also mentions to remove or comment out the original ~/.zshrc, ~/.zprofile, or ~/.zshenv file to prevent things from loading twice. I did not do this and McFly still ran for me. However, it may help you.

If you have already imported your dotfiles, I would try adding a path to cargo and see if that solves your issue.

https://user-images.githubusercontent.com/44414214/203904124-f6a38231-73a0-496e-bb9c-02f99acb7c5f.png Also be sure to run the following command after making changes in the fig dashboard.

fig source Unfortunately, I do not think this is an issue with McFly so it may just take time tinkering with Fig to get it to work.

— Reply to this email directly, view it on GitHub https://github.com/cantino/mcfly/issues/301#issuecomment-1327023412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAK5CI4KNAPPGWT5I44KPTWKBB5RANCNFSM6AAAAAASFLI35I. You are receiving this because you authored the thread.

navazjm commented 1 year ago

I am assuming you are manually running $(mcfly init zsh) inside your terminal. If so, you need to change it to eval "$(mcfly init zsh)" or source <(mcfly init zsh).

This will allow you to run mcfly by pressing Ctrl + r

From man bash : Screenshot 2022-11-30 at 8 47 08 PM Screenshot 2022-11-30 at 8 48 45 PM

pitosalas commented 1 year ago

Yes, you got it right! I know the difference but my fingers typed the wrong thing.

Great product!

On Nov 30, 2022, at 9:52 PM, Michael Navarro @.***> wrote:

I am assuming you are manually running $(mcfly init zsh) inside your terminal. If so, you need to change it to eval "$(mcfly init zsh)" or source <(mcfly init zsh).

This will allow you to run mcfly by pressing Ctrl + r

From man bash : https://user-images.githubusercontent.com/44414214/204954288-4b1090d3-dac8-490a-9e0d-f940a8a112a1.png https://user-images.githubusercontent.com/44414214/204954293-6663a454-a500-4c79-b994-9179c0f148af.png — Reply to this email directly, view it on GitHub https://github.com/cantino/mcfly/issues/301#issuecomment-1333084104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAK5CP666TQEJIIVPAUQQTWLAHGHANCNFSM6AAAAAASFLI35I. You are receiving this because you authored the thread.