🥘

zsh

I use zsh with oh-my-zsh heavily.

setting up new zsh with oh my zsh

firs installing zsh involves

brew install zsh

While I don’t really trust and run randomly downloaded shell files. This one is quite painless.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

typical packages:

  • git
  • zsh-autosuggestions
  • poetry
  • zsh-syntax-highlighting
  • command-time
  • poetry
plugins=(git zsh-autosuggestions poetry zsh-syntax-highlighting command-time poetry)

problems

New lines ending with a highlighted percentage This happens when the terminal will have to handle a partial output. In my case it was a remote connection in tty and I was facing this error. can be removed by unsetopt PROMPT_SP

https://superuser.com/questions/645599/why-is-a-percent-sign-appearing-before-each-prompt-on-zsh-in-windows

a quote i like

Frodo: “It’s a pity Bilbo didn’t kill Gollum when he had the chance.”

Gandalf: “Pity? It’s a pity that stayed Bilbo’s hand. Many that live deserve death. Some that die deserve life. Can you give it to them, Frodo? Do not be too eager to deal out death in judgment. Even the very wise cannot see all ends. My heart tells me that Gollum has some part to play in it, for good or evil, before this is over. The pity of Bilbo may rule the fate of many.”

Frodo: “I wish the Ring had never come to me. I wish none of this had happened.”

Gandalf: “So do all who live to see such times, but that is not for them to decide. All we have to decide is what to do with the time that is given to us. There are other forces at work in this world, Frodo, besides that of evil. Bilbo was meant to find the Ring, in which case you were also meant to have it. And that is an encouraging thought.” ― J.R.R. Tolkien, The Fellowship of the Ring