Posts tagged as zsh

This post intends to give a great start to customizing your prompt, that thing you're looking at all day whilst cruising the depths of linux ;P If you use oh-my-zsh or any one of the other frameworks, it's quite easy to not care and just chose o…

For zsh, I decided I wanted to simply add a line to my zshrc file to set the window title for iTerm2 to $(hostname) of the box I was currently logged in to: echo -ne "\e]1;${(hostname)}\a" Yes, its that easy:) Looking a little further into the s…

So after fighting with zsh for a bit, it seems there is never, ever, a 0 element in zsh arrays. All arrays start populating at element 1 i.e $array[1] Here is some example code to help ya populate and pilfer through an array of elements if its g…

Yeah. ccze. is awesome! I really wanted to use it across my systems and with all applicable commands like head, tail, cat, etc.. So I wrote a zsh function to check if the command exists and utilize it. This was kind of a pain because of the cor…